library(plotly) dsamp <- diamonds[sample(nrow(diamonds), 1000), ] qplot(carat, price, data=dsamp, colour=clarity) ggplotly()
p <- ggplot(data = d, aes(x = carat, y = price)) + geom_point(aes(text = paste("Clarity:", clarity)), size = 4) + geom_smooth(aes(colour = cut, fill = cut)) + facet_wrap(~ cut) (gg <- ggplotly(p))
ggplotly works by serializing ggplot2 figures into plotly's universal graph JSON. See the ggplot2 → plotly test tables for current ggplot2 conversion coverage. Submit issues or contribute on rOpenSci.
Plotly is a web-connected service by default, but can also work entirely offline within RStudio, IPython notebook, and MATLAB.