Skip to content

Instantly share code, notes, and snippets.

@yaojenkuo
Created December 7, 2017 08:53
Show Gist options
  • Save yaojenkuo/ffe2976e30ee5b5c60d0fe99f2070454 to your computer and use it in GitHub Desktop.
Save yaojenkuo/ffe2976e30ee5b5c60d0fe99f2070454 to your computer and use it in GitHub Desktop.
gapminder_replica/ui.R
region_list <- tidy_df$Region %>%
unique()
# Define UI for application that mimics a Gapminder visualization
shinyUI(fluidPage(
# Application title
titlePanel("Gapminder Replica"),
# Sidebar with a slider input for year
sidebarLayout(
sidebarPanel(
checkboxGroupInput("regions",
label = "Region:",
choices = region_list,
selected = region_list
)
),
mainPanel(
plotlyOutput("bubble")
)
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment