library(plotly)
d <- highlight_key(mtcars)
s <- subplot(
qplot(data = d, x = mpg, y = wt),
qplot(data = d, x = mpg, y = vs)
)
highlight(s, "plotly_selected")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.