-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.R
34 lines (31 loc) · 1.01 KB
/
app.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
library(shiny)
library(shinydashboard)
library(DT)
library(scales)
ui <- dashboardPage(
dashboardHeader(title = "Explore Properties"),
dashboardSidebar(
sidebarMenu(
menuItem("Pick Area", tabName = "Data", icon = icon("search")),
uiOutput("menuItem"),
menuItem("Plot", tabName = "Boxplot", icon = icon("area-chart"))
)
),
dashboardBody(
tabItems(
# include the UI for each tab
source(file.path("ui", "tab1.R"), local = TRUE)$value,
source(file.path("ui", "tab2.R"), local = TRUE)$value
)
)
)
server <- function(input, output, session) {
# Include the logic (server) for each tab
source(file.path("server", "tab1.R"), local = TRUE)$value
source(file.path("server", "tab2.R"), local = TRUE)$value
output$menuItem <- renderUI({
return(selectizeInput(
'pick_county', 'Location', choices = levels(data[["AddressSix"]]), multiple = TRUE))
})
}
shinyApp(ui = ui, server = server)