Description Usage Arguments Value See Also Examples
Create a checkbox control to enable manipulation of logical plot variables.
1 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.