We've recently released version 4 of our package on CRAN. Check out this post for more information about changes and features available in this version!
library(plotly) set.seed(100) d <- diamonds[sample(nrow(diamonds), 1000), ] plot_ly(d, x = ~carat, y = ~price, color = ~carat, size = ~carat, text = ~paste("Clarity: ", clarity))
Plotly graphs are interactive:
Click-drag to zoom, shift-click to pan, double-click to autoscale.
Know and love
p <- ggplot(data = d, aes(x = carat, y = price)) + geom_point(aes(text = paste("Clarity:", clarity))) + geom_smooth(aes(colour = cut, fill = cut)) + facet_wrap(~ cut) ggplotly(p)