Learn R Programming

shinybootstrap2 (version 0.2.1)

mainPanel: Create a main panel

Description

Create a main panel containing output elements that can in turn be passed to sidebarLayout.

Usage

mainPanel(..., width = 8)

Arguments

...
Output elements to include in the main panel
width
The width of the main panel. For fluid layouts this is out of 12 total units; for fixed layouts it is out of whatever the width of the main panel's parent column is.

Value

A main panel that can be passed to sidebarLayout.

Examples

Run this code
library(shiny)
# Show the caption and plot of the requested variable against mpg
mainPanel(
   h3(textOutput("caption")),
   plotOutput("mpgPlot")
)

Run the code above in your browser using DataLab