Skip to content

Commit

Permalink
use fluidRow() layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mawds committed Aug 9, 2018
1 parent 89c591b commit 01a9bb7
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions worked_example/app.R
Expand Up @@ -19,31 +19,32 @@ ui <- fluidPage(

# Application title
titlePanel("Gapminder plot"),

# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput("year",
"Select year",
min = min(gapminder$year),
max = max(gapminder$year),
value = min(gapminder$year),
sep="", # Hide thousands , separator
step=1, # Select every year
animate = animationOptions(interval = 1250)
),
checkboxGroupInput("continent",
"Select continents",
choices = levels(gapminder$continent),
selected = levels(gapminder$continent))
),

# Show a plot of the generated distribution
mainPanel(

fluidRow(
column(12,
plotOutput("gapminderPlot", click="plotClick"),
tableOutput("graphData"),
verbatimTextOutput("clickData")
)
),
fluidRow(
column(6,
sliderInput("year",
"Select year",
min = min(gapminder$year),
max = max(gapminder$year),
value = min(gapminder$year),
sep="", # Hide thousands , separator
step=1, # Select every year
animate = animationOptions(interval = 1250)
)
),
column(6,
checkboxGroupInput("continent",
"Select continents",
choices = levels(gapminder$continent),
selected = levels(gapminder$continent))
)
)
)

Expand Down

0 comments on commit 01a9bb7

Please sign in to comment.