plotly (version 4.8.0)

hide_legend: Hide legend

Description

Hide legend

Usage

hide_legend(p)

Arguments

p

a plotly object.

See Also

hide_colorbar()

Examples

Run this code
# NOT RUN {
p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~factor(cyl))
hide_legend(p)
# }

Run the code above in your browser using DataCamp Workspace