An R package for creating (and modifying) interactive web-based graphs via plotly's API.
plotly is not (yet) available on CRAN, but you can easily install it via devtools:
devtools::install_github("ropensci/plotly")If you don't already have a plotly account, either signup online or use the signup() function (see the help(signup) page for more details).
Note you can check if you have a username and API key with:
plotly:::verify("username")
plotly:::verify("api_key")If you use ggplot2, you can easily convert them to plotly!
library(plotly)
d <- diamonds[sample(nrow(diamonds), 1000), ]
p <- qplot(carat, price, size = I(4), data = d) + facet_wrap(~cut) +
geom_smooth(aes(colour = cut, fill = cut))
ggplotly(p)
See the vignette entry for an overview of the
- A declarative DSL for the plotly graphing library in R
- Plot with ggplot2, interact, collaborate, and share online « Bayesian Biologist
- A Rosetta Stone for R, ggplot2, Python, MATLAB, and Excel Plotting
- We love collaboration! See the code of conduct and the wiki for more information.

