Examples for 'plotly::hide_legend'


Hide legend

Aliases: hide_legend

Keywords:

### ** Examples


p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~factor(cyl))
hide_legend(p)
No trace type specified:
  Based on info supplied, a 'scatter' trace seems appropriate.
  Read more about this trace type -> https://plotly.com/r/reference/#scatter
No scatter mode specifed:
  Setting the mode to markers
  Read more about this attribute -> https://plotly.com/r/reference/#scatter-mode
Error in loadNamespace(name): there is no package called 'webshot'

[Package plotly version 4.10.0 Index]