shiny (version 0.9.1)

sidebarPanel: Create a sidebar panel

Description

Create a sidebar panel containing input controls that can in turn be passed to sidebarLayout.

Usage

sidebarPanel(..., width = 4)

Arguments

Value

A sidebar that can be passed to sidebarLayout

Examples

Run this code
# Sidebar with controls to select a dataset and specify
# the number of observations to view
sidebarPanel(
  selectInput("dataset", "Choose a dataset:",
              choices = c("rock", "pressure", "cars")),

  numericInput("obs", "Observations:", 10)
)

Run the code above in your browser using DataCamp Workspace