Plotly ggplot2 Library

Publish your ggplot2 figures to the web with one line!


library(plotly)

dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
qplot(carat, price, data=dsamp, colour=clarity)

py <- plotly()
py$ggplotly()
						
						

Want to see a feature added to the library? Write to feedback@plot.ly or submit an issue on rOpenSci. We'd love to hear your ideas.

See the ggplot2 → plotly test tables for current ggplot2 conversion coverage.

Documentation Examples


Basic Charts


Get Requests, Static Image Export, and Interactive Embedding