You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to use subplot in a shiny app, and naively assumed that there would be an ncols argument corresponding to nrows - evidently, that is not really needed, but an error message clearer than Error in [[: subscript out of bounds would have saved me a lot of confusion. Might still be worth making this explicit? (Or - though that might be too much of a change - require all ... arguments to be unnamed?)
library(plotly)
p1<- plot_ly(economics, x=~date, y=~uempmed)
p2<- plot_ly(economics, x=~date, y=~unemploy)
subplot(p1, p2, ncols=2)
#> Error in plots[[i]][["frames"]]: subscript out of bounds
I just tried to use
subplot
in a shiny app, and naively assumed that there would be anncols
argument corresponding tonrows
- evidently, that is not really needed, but an error message clearer thanError in [[: subscript out of bounds
would have saved me a lot of confusion. Might still be worth making this explicit? (Or - though that might be too much of a change - require all ... arguments to be unnamed?)Created on 2024-05-09 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: