Description Usage Arguments Value See Also Examples
View source: R/bootstrap-layout.R
Create a column for use within a  fluidRow() or
fixedRow()
| 1 | 
| width | The grid width of the column (must be between 1 and 12) | 
| ... | Elements to include within the column | 
| offset | The number of columns to offset this column from the end of the previous column. | 
A column that can be included within a
fluidRow() or fixedRow().
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | ## Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
  fluidRow(
    column(4,
      sliderInput("obs", "Number of observations:",
                  min = 1, max = 1000, value = 500)
    ),
    column(8,
      plotOutput("distPlot")
    )
  )
)
server <- function(input, output) {
  output$distPlot <- renderPlot({
    hist(rnorm(input$obs))
  })
}
shinyApp(ui, server)
ui <- fluidPage(
  fluidRow(
    column(width = 4,
      "4"
    ),
    column(width = 3, offset = 2,
      "3 offset 2"
    )
  )
)
shinyApp(ui, server = function(input, output) { })
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.