-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
136 lines (130 loc) · 4.22 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
dashboardPage(
title = "FDL",
dark = NULL,
dashboardHeader(disable = FALSE),
dashboardSidebar(
bs4DashSidebar(
title = "FDL",
# collapsed = FALSE,
# minified = FALSE,
expandOnHover = TRUE,
# fixed = FALSE,
bs4SidebarMenu(
id = "current_tab",
selectInput(inputId = "iso", label = NULL, choices = PAISES_OPCIONES, selected = "USA"),
bs4SidebarMenuItem(
text = "Inicio",
tabName = "inicio",
icon = shiny::icon("home")
),
bs4SidebarMenuItem(
text = "ICTWSS",
tabName = "ictwss"
),
bs4SidebarMenuItem(
text = "WDI",
tabName = "wdi"
),
bs4SidebarMenuItem(
text = "OECD",
tabName = "oecd"
),
bs4SidebarMenuItem(
text = "ILO",
tabName = "ilo"
),
bs4SidebarMenuItem(
text = "DPI",
tabName = "dpi"
),
bs4SidebarMenuItem(
text = "ILOEPLEX",
tabName = "iloeplex"
),
bs4SidebarMenuItem(
text = "ISSP",
tabName = "issp"
),
bs4SidebarMenuItem(
text = "VWS",
tabName = "vws"
),
bs4SidebarMenuItem(
text = "VDEM",
tabName = "vdem"
),
bs4SidebarMenuItem(
text = "Latinobarometro",
tabName = "latinobarometro"
)
)
)
),
dashboardBody(
tags$head(tags$link(rel = "stylesheet", type = "text/css", href = "css/fdl.css")),
tags$script(src = "https://code.highcharts.com/mapdata/custom/world-robinson-highres.js"),
bs4TabItems(
# inicio ------------------------------------------------------------------
bs4TabItem(
tabName = "inicio",
fluidRow(
box(
sliderInput(inputId = "mapaslider", label = NULL, min = 1960, max = 2018, value = 2018, animate = TRUE, sep = ""),
highchartOutput("mapainicio", height = PARS$hcheight),
width = 12
)
)
),
# ictwss ---------------------------------------------------------------------
bs4TabItem(
tabName = "ictwss",
fluidRow(
box(width = 6, highchartOutput("ictwss_anio_ud_fem_ud_male", height = PARS$hcheight)),
box(width = 6, highchartOutput("ictwss_anio_ud", height = PARS$hcheight)),
)
),
# wdi ---------------------------------------------------------------------
bs4TabItem(
tabName = "wdi",
fluidRow(
box(width = 6, highchartOutput("wdi_anio_gini", height = PARS$hcheight))
)
),
# oecd --------------------------------------------------------------------
bs4TabItem(
tabName = "oecd",
fluidRow(
box(width = 6, highchartOutput("oecd_anio_rnw", height = PARS$hcheight))
)
),
# ilo ---------------------------------------------------------------------
# dpi ---------------------------------------------------------------------
# bs4TabItem(
# tabName = "dpi",
# fluidRow(
# box(width = 6, highchartOutput("dpi_anio_rmw", height = PARS$hcheight))
# )
# ),
# iloeplex ----------------------------------------------------------------
# bs4TabItem(
# tabName = "iloeplex",
# fluidRow(
# # box(width = 6, highchartOutput("ilo2_anio_nstrikes_isic31_total", height = PARS$hcheight))
# )
# ),
# issp --------------------------------------------------------------------
bs4TabItem(
tabName = "issp",
fluidRow(
box(
width = 6,
sliderInput(inputId = "issp_mapa_slider", label = NULL, min = 1960, max = 2018, value = 2018, animate = TRUE, sep = ""),
highchartOutput("issp_mapa_conflict_very_strong", height = PARS$hcheight))
)
)
# vws ---------------------------------------------------------------------
# vdem --------------------------------------------------------------------
# latinobarometro ---------------------------------------------------------
)
)
)