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 Jan. 25, 2024, 6:09 p.m.