demo/crosstalk-highlight-subplot.R

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")
plotly/plotly.R documentation built on Dec. 20, 2024, 6:40 a.m.