Quick experiment on embedding plot.ly graphics.

library(ggplot2)
library(plotly)

Basic plotly

plot_ly(iris, x = Petal.Length, y = Petal.Width,
        color = Species, mode = "markers")
## Error in html_screenshot(x): Please install the webshot package (if not on CRAN, try devtools::install_github("wch/webshot"))

Now using ggplot2

ggiris <- qplot(Petal.Width, Sepal.Length, data = iris, color = Species)
ggplotly(ggiris)
## Error in html_screenshot(x): Please install the webshot package (if not on CRAN, try devtools::install_github("wch/webshot"))

This next one is embedded from plot.ly.

Updated: