-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
92 lines (78 loc) · 3.54 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
# ui.R
shinyUI(navbarPage("EU Economic Analysis",
tabPanel("Explore Europe",
column(3,
selectInput("economyIndicatorSelection", label = h4("Choose indicator"),
choices = c("GDP", "Inflation", "Unemployment", "Life.expect"),
selected = 2, width = 150),
htmlOutput("rangeSlider")
),
column(6,
plotOutput("mapExploreEurope", hover = "plot_hover")
)
),
tabPanel("Compare economic indicators",
fluidRow(
column(2,{}),
column(2,{}),
column(2,{}),
column(2, h3(textOutput("text1"),style="float:right"))
),
fluidRow(
column(1,{}),
column(3,
selectInput("countrySelection", label = h4("Choose country"),
choices = europe$Country,
selected = 5, width = 150),
selectInput("indicatorSelection", label = h4("Choose indicator"),
choices = c("GDP", "Inflation", "Unemployment", "Life.expect"),
selected = 1, width = 150),
plotOutput("barPlot", width = 300, height = 300)
),
column(7, plotOutput("mapEurope", hover = "plot_hover"))
),
fluidRow()
),
tabPanel("Grouping of countries",
column(2,
selectInput("kChoice", label = h4("Number of clusters:"),
choices = c("2", "3", "4", "5", "6"),
selected = "2", width = 170),
checkboxInput("checkboxGDP", "GDP", value = TRUE, width = NULL),
checkboxInput("checkboxInflation", "Inflation", value = TRUE, width = NULL),
checkboxInput("checkboxMilitary", "Military", value = TRUE, width = NULL),
checkboxInput("checkboxUnemployment", "Unemployment", value = TRUE, width = NULL),
selectInput("xAxisChoice", label = h4("X Axis:"),
choices = c("GDP", "Inflation", "Military", "Unemployment"),
selected = "GDP", width = 150),
selectInput("yAxisChoice", label = h4("Y Axis:"),
choices = c("GDP", "Inflation", "Military", "Unemployment"),
selected = "Inflation", width = 150)
),
column(5,
plotOutput("clusterPlot", width = 750, height = 400)
),
column(1, {}),
column(2,
plotOutput("clusterMap", width = 380, height = 280)
)
),
tabPanel("Economic attribute relations",
column(2,
selectInput("xAxisChoice", label = h4("X Axis"),
choices = c("GDP", "Inflation", "Unemployment", "Area"),
selected = "GDP", width = 150),
selectInput("yAxisChoice", label = h4("Y Axis"),
choices = c("GDP", "Inflation", "Unemployment", "Area"),
selected = "Inflation", width = 150),
selectInput("sizeAxisChoice", label = h4("Size Dimension"),
choices = c("GDP", "Inflation", "Unemployment", "Area"),
selected = "Unemployment", width = 150),
selectInput("colorAxisChoice", label = h4("Color Dimension"),
choices = c("GDP", "Inflation", "Unemployment", "Area"),
selected = "Area", width = 150)
),
column(8, plotOutput("scatter")),
column(2, {})
)
))