Description Usage Arguments Value Examples
Create a main panel containing output elements that can in turn be passed to
sidebarLayout
.
1 |
... |
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. |
A main panel that can be passed to sidebarLayout
.
1 2 3 4 5 6 |
You probably do not want to attach this package (with library() or require()). Instead, you should use shinybootstrap2::withBootstrap2(). You can hide this message with suppressPackageStartupMessages().
Attaching package: 'shiny'
The following objects are masked from 'package:shinybootstrap2':
animationOptions, basicPage, bootstrapPage, checkboxGroupInput,
checkboxInput, column, dataTableOutput, dateInput, dateRangeInput,
fixedPage, fixedRow, fluidPage, fluidRow, headerPanel, icon,
mainPanel, navbarPage, navlistPanel, numericInput, pageWithSidebar,
radioButtons, selectInput, selectizeInput, sidebarLayout,
sidebarPanel, sliderInput, submitButton, textInput, titlePanel,
updateCheckboxGroupInput, updateRadioButtons, updateSliderInput,
verticalLayout
<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>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.