-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
70 lines (70 loc) · 2.78 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
shinyUI(
navbarPage(
"COVID-19 Data Visualizer",
tags$style(type = 'text/css', '.navbar {#font-family: Arial; font-size: 20px; }'),
selected = "Global Status",
collapsible = TRUE,
inverse = TRUE,
theme = shinytheme("superhero"),
tabPanel(
"Global Status",
width = "100%",
div(plotlyOutput("figG"), align = "center"),
br(),
div(plotlyOutput("global_time"), align = "center"),
br(),
div(plotlyOutput("global_cfr"), align = "center"),
br(),
div(plotlyOutput("global_p"), align = "center"),
br(),
div(plotlyOutput("global_recov_dead"), align = "center")
),
tabPanel("Analytics",
fluidPage(
sidebarPanel(
width = 2,
selectInput(
"countries",
label = "Select Countries",
choices =
country_list,
selected = c(country_list[which(country_list == "Malaysia")], country_list[which(country_list ==
"Nepal")], country_list[which(country_list == "Pakistan")]),
multiple = T
),
selectInput(
"Scale",
label = "Comparative Charts' Scale",
choices =
c("Linear", "Log"),
selected = "Linear",
multiple = F
),
submitButton(text = "View")
),
mainPanel (h1(""),
tabsetPanel(
tabPanel(
"Comparative Charts",
div(plotlyOutput("fig_confirm"), align = "center"),
br(),
div(plotlyOutput("fig_dead"), align = "center"),
br(),
div(plotlyOutput("fig_recov"), align = "center")
),
tabPanel(
"Metrics",
div(plotlyOutput("fig_confirm_S"), align = "center"),
br(),
div(plotlyOutput("fig_confirm_D"), align = "center"),
br(),
div(plotlyOutput("fig_Ratio"), align = "center"),
br(),
div(plotlyOutput("fig_cfr_print"), align = "center")
),
tabPanel("Growth",
div(plotlyOutput("fig_cp_print"), align = "center"))
))
))
)
)