powered by
Hide legend
hide_legend(p)
a plotly object.
hide_colorbar()
# NOT RUN { p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~factor(cyl)) hide_legend(p) # }
Run the code above in your browser using DataLab