Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

[R] Set plotly javascript parameters in R


I’m using R plotly. I would like to set “modeBarButtonsToRemove = [‘sendDataToCloud’]” via R. However, I can’t figure out how to set the config parameters to do that.

Here’s my code so far:

        p <- plot_ly(boxPlotData, y= value, color = key, type = "box", boxmean = TRUE) %>%
        config(p = ., staticPlot = FALSE, displayModeBar = TRUE, workspace = TRUE, editable = T, sendData = FALSE, displaylogo = FALSE,
               modeBarButtonsToRemove = list("sendDataToCloud"))

It doesn’t like that last parameter. Any help would be greatly appreciated!

This PR should help you get started.

Note that you may to upgrade your R plotly version to use the latest options.

thanks,very good. solved my point