Description Usage Arguments Examples
Toggle the visibily of a chart.
1 | action_toggle_visibility(g, btn)
|
g |
An object of class |
btn |
Id of the input_button that toggles the visibility. |
1 2 3 4 5 6 | # works in Rmarkdown
input_button("toggle", "Show/hide chart")
g2(mtcars, asp(qsec, mpg)) %>%
fig_point() %>%
action_toggle_visibility("toggle")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.