21 lines
499 B
R
21 lines
499 B
R
library(shiny)
|
|
|
|
# Define UI for application that draws a histogram
|
|
shinyUI(fluidPage(
|
|
|
|
# Application title
|
|
titlePanel("Hello Shiny!"),
|
|
|
|
# Sidebar with a slider input for the number of bins
|
|
sidebarLayout(
|
|
sidebarPanel(
|
|
checkboxGroupInput('show_vars', 'Columns in dataset to show:',
|
|
names(emergency2013), selected = names(emergency2013))
|
|
),
|
|
|
|
# Show a plot of the generated distribution
|
|
mainPanel(
|
|
plotOutput("distPlot")
|
|
)
|
|
)
|
|
)) |