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")
ropensci/plotly documentation built on June 10, 2024, 5:51 a.m.