-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
49 lines (41 loc) · 1.95 KB
/
ui.R
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
library(shiny)
library(leaflet)
shinyUI(navbarPage("Population Undernourished, 1991-2015", id = "nav",
tabPanel("World Map",
div(class = "outer",
tags$style(type = "text/css",
".outer {position: fixed; top: 41 px; left: 0;
right: 0; bottom: 0; overflow: hidden; padding: 0}"),
leafletOutput("worldmap", width = "100%", height = "1075px"),
absolutePanel(id = "controls", class = "panel panel-default",
fixed = TRUE, draggable = TRUE, top = "auto",
left = 20, right = "auto", bottom = 60,
width = 330, height = "auto",
sliderInput("yearmap", "Choose a year:",
min = 1991, max = 2015, value = 2015,
animate = FALSE, sep = ""),
checkboxInput("sanitation",
"Population not using improved sanitation facilities (%)",
value = TRUE)
),
tags$div(id = "cite",
strong("Data source:"), tags$em("United Nations' MDG Indicators Database
(http://mdgs.un.org/unsd/mdg/Data.aspx).", "Please send questions and comments
to Giang Nguyen (giang.huong.nguyen92@gmail.com)")
)
)
),
tabPanel("Histogram",
plotOutput("hist", width = "80%", height = "375px"),
br(),
hr(),
br(),
fluidRow(
shiny::column(10, offset = 4,
sliderInput("yearhist", "Choose a year:",
min = 1991, max = 2015, value = 2015,
animate = TRUE, sep = "")
)
)
)
))