-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
109 lines (93 loc) · 5.38 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
library(shiny)
library(shinythemes)
library(plotly)
# Define UI for application that draws a histogram
ui <- shinyUI(fluidPage(
includeCSS("style.css"),
navbarPage("Covid Status in La Rioja, Spain",
tabPanel("Overview",
fillPage(theme = shinytheme("superhero"),
fluidRow(
column(10,
fluidRow(
column(5,
"Date updated:", textOutput("date_updated", inline = T),
)
),
fluidRow(
column(3,
h6("Open Cases in La Rioja")
),
column(3,
h6("Cumulative Incidence (14d) in La Rioja")
),
column(3,
htmlOutput("open_cases_in_city_selected_text")
),
column(3,
htmlOutput("cum_inc_in_city_selected_text")
),
),
fluidRow(
column(3,
wellPanel (
div(textOutput("total_open_cases"),style = "font-size:105%")
)
),
column(3,
wellPanel (
div(textOutput("cumulative_incidence_LR"), style = "font-size:105%")
)
),
column(3,
htmlOutput("panel_open_cases_in_city_selected")
),
column(3,
htmlOutput("panel_cum_inc_in_city_selected")
)
)
),
),
fluidRow(
leafletOutput(outputId = "ByRegion"),
h6("Click in each city for extended information")
)
)
),
tabPanel("Evolution",
h5("Cumulative Incidence in the last 7 / 14 days"),
fluidRow(
plotlyOutput("IA")
)
),
tabPanel("Testing", style="overflow-y: visible",
fixedRow(
column(4,
h6("PCR tests in the last 14 days by Age Range"),
h6("(Positive in orange vs Total in green)"),
plotlyOutput("tests_per_age_range", width = "auto", height = 280))
,
column(8,
h6("PCR test evolution in time"),
h6("Total and Positive Tests per day"),
plotlyOutput("test_evolution", width = "auto", height = 280)
),
),
fixedRow(
column(8,
h6("PCR tests by City"),
h6("Top 15 Region with higher Cumulative PCR Positive Ratio"),
plotlyOutput("tests_region", width = "auto", height = 280)
),
column(4,
h6("Total PCR tests by Weekday"),
h6("(Positive in orange vs Total in green)"),
plotlyOutput("tests_weekday", width = "auto", height = 280)
),
),
),
tabPanel("About Me", fluidPage(theme = shinytheme("superhero")),
h5(a("Check my Github account!", href="https://github.com/macarenasev", target="_blank"))
)
)
))