-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
143 lines (124 loc) · 4.42 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
137
138
139
140
141
142
143
library(shiny)
library(shinydashboard)
source("global.R")
# Define UI for application that draws a histogram
ui <- fluidPage(
tags$head(tags$style("#Text{color: black;
font-size: 24px;,}
#Updtext{color: black;
font-size: 9px;}")),
tags$style(type = "text/css", ".row {margin-top: 7px; margin-bottom: 0px;}"),
tags$style(HTML(".col-sm-12 { padding: 5px; margin-bottom: -15px; }")),
tags$style(HTML(".col-sm-6 { padding: 5px; margin-bottom: -15px; }")),
tags$head(tags$style(HTML('
/* logo */
.skin-blue .main-header .logo {
background-color: #DAE1E7;
}
.skin-blue .main-header .logo {
color: #000000;;
}
/* navbar (rest of the header) */
.skin-blue .main-header .navbar {
background-color: #DAE1E7;
}
.skin-blue .main-header .logo:hover {
background-color: #DAE1E7;
}
.box.box-solid.box-primary>.box-header {
color: #000000;
background:#DAE1E7
}
.box.box-solid.box-primary{
border-bottom-color:#DAE1E7;
border-left-color:#DAE1E7;
border-right-color:#DAE1E7;
border-top-color:#DAE1E7;
}'))),
dashboardPage(
# header
header = dashboardHeader(title = "Evolución COVID-19 en Canarias", titleWidth = 400),
# sidebar
dashboardSidebar(disable = TRUE),
# body
body = dashboardBody(
fluidRow(
#column(width = 6, textOutput("Text")),
column(width = 2, valueBoxOutput("Cases", width = 13)),
column(width = 2, valueBoxOutput("ActiveCases", width = 13)),
column(width = 2, valueBoxOutput("Deaths", width = 13)),
column(width = 2, valueBoxOutput("Hospitalizados", width = 13)),
column(width = 2, valueBoxOutput("UCI", width = 13)),
column(width = 2, valueBoxOutput("Recovered", width = 13))
),
# fluidRow(valueBoxOutput("TotalCases", width = 3), valueBoxOutput("Deaths", width = 3)),
fluidRow(column(width = 12, textOutput("Updtext"))),
fluidRow(
column(
width = 6,
box(
title = paste0("Casos acumulados por 100.000 habitantes"),
status = "primary",
width = 16.5, solidHeader = TRUE,
leafletOutput("mapPlot", height = 470)
)
),
column(
width = 6,
box(
title = "Evolución diaria",
status = "primary",
width = 16.5, solidHeader = TRUE,
plotly::plotlyOutput("EvolutionPlot", height = 470)
)
)
),
fluidRow(
column(
width = 6,
box(
title = "Casos en Unidad de Cuidados Intensivos (UCI)",
status = "primary",
width = 16.5, solidHeader = TRUE,
plotly::plotlyOutput("UciPlot", height = 470)
)
),
column(
width = 6,
box(
title = "Incidencia acumulada/100.000 habitantes por grupo de edad y sexo",
status = "primary",
width = 16.5, solidHeader = TRUE,
plotly::plotlyOutput("AgePlot", height = 470)
)
)
# column(width = 6,
# box(title = "Fallecimientos por isla",
# status = "primary",
# width = 16.5, solidHeader = TRUE,
# plotly::plotlyOutput("DeathsPlot", height = 470)))
),
fluidRow(
column(
width = 6,
box(
title = "Desglose de los casos por situación",
status = "primary",
width = 16.5, solidHeader = TRUE,
plotly::plotlyOutput("SplitPlot", height = 470)
)
),
column(
width = 6,
box(
title = "Ajuste (curva logística, 200 simulaciones) y predicción de casos de UCI (3 días)",
status = "primary",
width = 16.5, solidHeader = TRUE,
plotly::plotlyOutput("ModelPlot", height = 470)
)
)
),
fluidRow(column(width = 12, textOutput("FootNote")))
)
)
)