saugandh datta saugandh datta - 1 year ago 312
R Question

How to remove completely top hower bar or partial while using plotly chart in R?

How can i remove the top hower bar which has download plot, zoom in or out or options on the plotly chart in R ?

enter image description here

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download