Description Usage Arguments Value Examples
View source: R/plotly_functions.R
Shortcut for removing the options on the top of a plotly plot.
1 | clear_plotly_options(plotly_object, buttons_to_keep = NULL, keep_logo = FALSE)
|
plotly_object |
A plotly object. |
buttons_to_keep |
A string. Default is
|
keep_logo |
A logical. Default is |
A plotly object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# remove all options
p %>%
clear_plotly_options()
# keep Download plot as a png button
p %>%
clear_plotly_options(buttons_to_keep = "toImage")
# keep zoom in and zoom out buttons
p %>%
clear_plotly_options(buttons_to_keep = c("zoomIn2d", "zoomOut2d"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.