How can i remove the top hower bar which has download plot, zoom in or out or options on the plotly chart in R ?
Asked
Active
Viewed 1,928 times
2 Answers
1
I google a little for you. This should be simple, use this:
config(displayModeBar = F)
Look here to the Answer of Vance Lopez: Removing the Edit Chart link from an R plotly graph
From the documentation, use config:
Plotly object p
p %>% config(showLink = F) You can see .js config options in action here.
Note: the "save and edit plot in cloud" button in the Mode Bar at the top still exists. You can turn off the Mode Bar with
config(displayModeBar = F) There is a request on GitHub to edit specific Mode Bar buttons.
0
Similar to flipperweid's answer, you can use config(plot, modeBarButtonsToRemove = list("sendDataToCloud"))
to remove individual buttons

alan ocallaghan
- 3,116
- 17
- 37
-
You can see a current list of modeBarButtons here: https://github.com/plotly/plotly.js/blob/master/src/components/modebar/buttons.js – alan ocallaghan Nov 21 '16 at 15:16