Black Lives Matter. Please consider donating to Black Girls Code today.

Subplot not functioning

I am trying to have a page with multiple ggplotly plots arrayed one on top of the other, but following this strategy with subplot doesn’t work – it just prints one of the figures and get stuck until I click on that figure in Rstudio.

> plots <- lapply(selected.plots, ggplotly)
> subplot(plots)