RStudio Shiny UI

UI Elements

tabsetPanel Create a tabset that contains tabPanel elements. Tabsets are useful for dividing output into multiple independently viewable sections.

tabPanel Create a tab panel that can be included within a tabsetPanel.

conditionalPanel Creates a panel that is visible or not, depending on the value of a JavaScript expression. The JS expression is evaluated once at startup and whenever Shiny detects a relevant change in input/output.

headerPanel Create a header panel containing an application title.

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

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

wellPanel Creates a panel with a slightly inset border and grey background. Equivalent to Twitter Bootstrap’s well CSS class.

Input Elements

actionButton Creates an action button whose value is initially zero, and increments by one each time it is pressed.

checkboxGroupInput Create a group of checkboxes that can be used to toggle multiple choices independently. The server will receive the input as a character vector of the selected values.

checkboxInput Create a checkbox that can be used to specify logical values.

dateInput Creates a text input which, when clicked on, brings up a calendar that the user can click on to select dates.

dateRangeInput Creates a pair of text inputs which, when clicked on, bring up calendars that the user can click on to select dates

fileInput Create a file upload control that can be used to upload one or more files. Does not work on older browsers, including Internet Explorer 9 and earlier

numericInput Create an input control for entry of numeric values

radioButtons Create a set of radio buttons used to select an item from a list.

selectInput Create a select list that can be used to choose a single or multiple items from a list of values.

sliderInput Constructs a slider widget to select a numeric value from a range.

submitButton Create a submit button

textInput Create an input control for entry of unstructured text values

Output Elements

htmlOutput Render a reactive output variable as HTML within an application page. The text will be included within an HTML div tag, and is presumed to contain HTML content which should not be escaped.

imageOutput Render a renderImage within an application page.

plotOutput Render a renderPlot within an application page

tableOutput Render a renderTable within an application page.

textOutput Create an input control for entry of unstructured text values

verbatimTextOutput Render a reactive output variable as verbatim text within an application page. The text will be included within an HTML pre tag.

Leave a Reply

Your email address will not be published. Required fields are marked *