Each item passed to verticalLayout()
will occupy a row. This is similar to fluidRow()
, except that fluidRow()
expects there to be one or more column()
s inside, whereas vertcialLayout()
does not; each item takes a full row.
Last active
August 29, 2015 13:57
-
-
Save wch/9669225 to your computer and use it in GitHub Desktop.
Vertical layout example for R Shiny
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
Type: Shiny | |
Title: Vertical Layout | |
License: MIT | |
Author: Winston Chang <winston@rstudio.com> | |
AuthorUrl: http://www.rstudio.com/ | |
Tags: vertical-layout | |
DisplayMode: Showcase | |
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
shinyServer(function(input, output) { | |
output$plot1 <- renderPlot({ | |
plot(x = rnorm(input$n), y = rnorm(input$n)) | |
}) | |
}) |
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
shinyUI(fluidPage( | |
verticalLayout( | |
titlePanel("Vertical layout example"), | |
plotOutput("plot1"), | |
wellPanel( | |
sliderInput("n", "Number of points", 10, 200, | |
value = 50, step = 10) | |
) | |
) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment