-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.R
More file actions
34 lines (25 loc) · 868 Bytes
/
ui.R
File metadata and controls
34 lines (25 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
library(leaflet)
partier = c("MP","S","V","SD","M","C","FP","KD")
valen = c("Riksdag","Landsting","Kommun")
upplosningar = c("Kommun","Valdistrikt")
header = dashboardHeader(title="Valresultat 2014")
sidebar = dashboardSidebar(
selectInput('val', 'val', valen),
selectInput('upplosning', 'upplosning', upplosningar),
selectInput('parti', 'parti', partier)
)
body <- dashboardBody(
tags$style(type = "text/css", "#map {height: calc(100vh - 80px) !important;}"),
leafletOutput("map")
)
shinyUI(dashboardPage(header, sidebar, body, skin="black"))