``` r m <- split(mtcars, mtcars$vs) subplot(lapply(m, function(x) plot_ly(x, x = ~mpg, y = ~wt, color = ~factor(cyl)))) ```