powered by
Modify the colorbar
colorbar(p, ...)
a plotly object
arguments are documented here https://plot.ly/r/reference/#scatter-marker-colorbar.
# NOT RUN { plot_ly(mpg, x = ~cty, y = ~hwy, color = ~cyl) %>% colorbar(len = 0.5) # }
Run the code above in your browser using DataLab