Remove plotly buttons from the mode bar, other than the camera and plotly logo.

plotly_remove_buttons(plotly, logo = FALSE)

Arguments

plotly

A plotly object.

logo

TRUE or FALSE of whether to display the plotly logo. Defaults to FALSE.

Examples

plot_data <- dplyr::sample_frac(ggplot2::diamonds, 0.05) plot <- ggplot_scatter(data = plot_data, x_var = carat, y_var = price)
#> Warning: Ignoring unknown aesthetics: text
plotly::ggplotly(plot, tooltip = "text") %>% plotly_remove_buttons()