mainPanel: Create a main panel

Description Usage Arguments Value Examples

View source: R/bootstrap.R

Description

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

Usage

1

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

1
2
3
4
5
# Show the caption and plot of the requested variable against mpg
mainPanel(
   h3(textOutput("caption")),
   plotOutput("mpgPlot")
)

Example output

<div class="col-sm-8">
  <h3>
    <div id="caption" class="shiny-text-output"></div>
  </h3>
  <div id="mpgPlot" class="shiny-plot-output" style="width: 100% ; height: 400px"></div>
</div>

shiny documentation built on Nov. 3, 2018, 1:03 a.m.