Hide legend

hide_legend(p)

Arguments

p

a plotly object.

See also

Examples


p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~factor(cyl))
hide_legend(p)