checkbox {manipulate} | R Documentation |
Create a checkbox control to enable manipulation of logical plot variables.
checkbox(initial = FALSE, label = NULL)
initial |
Initial value for checkbox. Must be logical (defaults to |
label |
Display label for checkbox. Defaults to the variable name if not specified. |
An object of class "manipulator.checkbox" which can be passed to the manipulate
function.
manipulate
, slider
, picker
, button
## Not run: ## Using checkboxes for boolean parameters manipulate( plot(cars, axes = axes, ann = label), axes = checkbox(TRUE, "Draw Axes"), label = checkbox(FALSE, "Draw Labels")) ## Toggle boxplot outlier display using checkbox manipulate( boxplot(Freq ~ Class, data = Titanic, outline = outline), outline = checkbox(FALSE, "Show outliers")) ## End(Not run)