In particular, I am looking for a way to hide all buttons except the download image button. I tried to use the config argument but so far only managed to hide the entire modebar using displayModeBar = F. Any help would be highly appreciated.
Asked
Active
Viewed 1,052 times
1 Answers
4
Here's what you are looking for:
plot_ly(economics, x = ~pop) %>%
config(displaylogo = FALSE, collaborate = FALSE,
modeBarButtonsToRemove = c(
'sendDataToCloud', 'autoScale2d', 'resetScale2d', 'toggleSpikelines',
'hoverClosestCartesian', 'hoverCompareCartesian',
'zoom2d','pan2d','select2d','lasso2d','zoomIn2d','zoomOut2d'
))
Since possible buttons are going to depend on the type of graph, keep in mind this list.

Julius Vainora
- 47,421
- 9
- 90
- 102
-
@ Julius Thank you very much. Exactly what I was looking for. – Patrick Balada Jan 07 '19 at 15:58
-
the 'config' is not producing a plot but a text (class request) that descibes the options. – JdP May 07 '19 at 13:55