Description Usage Arguments Value See Also Examples
View source: R/input-radiobuttons.R
Create a set of radio buttons used to select an item from a list.
1 | radioButtons(inputId, label, choices, selected = NULL, inline = FALSE)
|
inputId |
Input variable to assign the control's value to |
label |
Display label for the control, or |
choices |
List of values to select from (if elements of the list are named then that name rather than the value is displayed to the user) |
selected |
The initially selected value (if not specified then defaults to the first value) |
inline |
If |
A set of radio buttons that can be added to a UI definition.
Other input.elements: animationOptions
,
sliderInput
;
checkboxGroupInput
;
checkboxInput
; dateInput
;
dateRangeInput
; numericInput
;
selectInput
, selectizeInput
;
submitButton
; textInput
1 2 3 4 5 | radioButtons("dist", "Distribution type:",
c("Normal" = "norm",
"Uniform" = "unif",
"Log-normal" = "lnorm",
"Exponential" = "exp"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.