-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
33 lines (32 loc) · 1.29 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
# This code specifies the general structure of the shinydashboard
shinyUI(
dashboardPage(
dashboardHeader(title = "SPL SS2018"),
dashboardSidebar(
selectInput("year", "Select Year",
choices = c("2012", "2015", "2018")),
selectInput("dictionary", "Select dictionary",
choices = c("NRC", "Minqing", "Sentimentr")),
selectInput("country", "Select country for wordcloud",
choices = c("austria", "belgium", "bulgaria", "cyprus",
"czech republic", "denmark", "estonia", "finland", "france",
"germany", "hungary", "ireland", "italy", "latvia", "lithuania",
"luxembourg", "malta", "netherlands", "poland", "portugal",
"romania", "slovakia", "slovenia", "spain", "sweden", "uk"))
),
dashboardBody(
fluidRow(
box(title = "Sentiment Map",
status = "primary",
solidHeader = TRUE,
align = "center",
ggiraphOutput("map")),
box(title = "Country Wordcloud",
status = "primary",
solidHeader = TRUE,
align = "center",
wordcloud2Output("wordcloud"))
)
)
)
)