-
-
Save yaojenkuo/ffe2976e30ee5b5c60d0fe99f2070454 to your computer and use it in GitHub Desktop.
gapminder_replica/ui.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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