library(plotly)
library(crosstalk)
d <- SharedData$new(mtcars)
subplot(
qplot(data = d, x = mpg, y = wt),
qplot(data = d, x = mpg, y = vs)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.