-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
21 lines (17 loc) · 908 Bytes
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
library(plotly)
library(shiny)
source("setup.R")
function(req) {
htmlTemplate("index.html",
county=selectInput("county","Select a county:", choices = unique(county_choices$county), selected = 'Colorado'),
estimates_plot=plotlyOutput("estimates"),
estimates_dl=downloadButton('estimatesData', 'Download Data (CSV)'),
net_mig_plot=plotlyOutput("netMigAge"),
net_mig_dl=downloadButton('netMigAgeData', 'Download Data (CSV)'),
projections_plot=plotlyOutput("projections"),
projections_dl=downloadButton('projectionsData', 'Download Data (CSV)'),
components_plot=plotlyOutput("components"),
components_dl=downloadButton('componentsData', 'Download Data (CSV)'),
projections_age_plot=plotlyOutput("projections_age")
)
}