ui <- fluidPage(
# Application title
titlePanel("FRED Data App"),
fluidRow(
# 12 columns on one row: this panel will take 1/3 of it
column(4, wellPanel(
selectInput("indicator", "Indicator:", vars)
),
helpText("Select an indicator, choose a date range and view the trend.
The grey bars represent economic recessions.
The data for this app comes from the St. Louis Fed's
FRED database. The consumer confidence, business confidence and
lead composite indicators are OECD data downloaded through FRED.")
),
# Remaining 2/3 occupied by plot
column(8,
plotOutput("lineChart"),
sliderInput(
"range",
"",
min = start_date,
max = end_date,
value = c(start_date, end_date),
width = "100%"
)
)
)
)