-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
84 lines (68 loc) · 2.66 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
# tags$style('.input-sm {font-size: 40px; } label {font-weight: 500; margin-bottom: 15px; }'),
# In global.R we load libraries and code source for ui.r and server.R
library(shinydashboard)
require(highcharter)
library(leaflet)
library(leafpop)
ancho_titulo_side = 200
logo_coronavius <- "buscar logo"
# header
header <- dashboardHeader( title = "Corona virus \n dashboard",
titleWidth = ancho_titulo_side
)
# sidebar
sidebar <- dashboardSidebar(
width = ancho_titulo_side,
sidebarMenu(id = "sidebarmenu",
style = "position: fixed; overflow: visible;",
menuItem("Mapa Global",
tabName = "Mapa_global", icon = icon("globe")),
menuItem("Evolutivo",
tabName = "Tabla_evolutivo", icon = icon("calendar")),
menuItem("Mapa España",
tabName = "Mapa_ccaa", icon = icon("globe")),
menuItem("Evolutivo CCAA",
tabName = "Tabla_evolutivo_ccaa", icon = icon("calendar")),
menuItem("Indicadores (por definir)",
tabName = "indicadores_estrategicos",
icon = icon("handshake-o"),
menuSubItem("Ind1", icon = icon("list-alt"),
tabName = "compare_countries"),
menuSubItem("Ind2", icon = icon("calendar"),
tabName = "pdte")
),
br(),
br(),
p(" Datos España: "),
p(tags$a(href="https://github.com/datadista/datasets/tree/master/COVID%2019", " Datadista")),
br(),
p(" Datos Globales: "),
p(tags$a(href="https://github.com/CSSEGISandData/COVID-19", " CSSE at Johns Hopkins University"))
)
)
body <- dashboardBody(
# tags$script(inactivity),
# tags$head(
# tags$link(rel = "stylesheet", type = "text/css", href = "custom.css"),
# tags$style(HTML("
# .shiny-output-error-validation {
# font-size: 150%;
# color: #0072B7;
# }
# "))
# ),
tabItems(
tab_mapa_ccaa,
tab_mapa,
tab_evolutivo,
tab_evolutivo_ccaa
# tabitem3
)
)
# DashboardPage, all together
dashboardPage(title="Corona Virus Tracker",
header,
sidebar,
body,
skin = "purple"
)