Learn R Programming

simplevis (version 1.1.1)

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

Description

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

Usage

remove_plotly_buttons(plotly, logo = FALSE)

Arguments

plotly

A plotly object.

logo

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

Examples

Run this code
# NOT RUN {
plot_data <- dplyr::sample_frac(ggplot2::diamonds, 0.05)

plot <- ggplot_scatter(data = plot_data, x_var = carat, y_var = price)

plotly::ggplotly(plot, tooltip = "text") %>% 
   remove_plotly_buttons()
# }

Run the code above in your browser using DataLab