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 can't find traces of this patchwork error online. I do not understand this error but can fix it by setting theme options in individual plots. My initial problem was with plots in list-columns and it took me a while to get to the theme_set option; hence this post :)
library(ggplot2)
library(patchwork)
theme_set(theme_void())
p1<- ggplot(mtcars) + geom_point(aes(mpg, disp))
p2<- ggplot(mtcars) + geom_boxplot(aes(gear, disp, group=gear))
p1+p2#> Error in x$grobs[[grep(paste0("^", name, "$"), x$layout$name)]]: attempt to select less than one element in get1index
Hello,
I can't find traces of this patchwork error online. I do not understand this error but can fix it by setting theme options in individual plots. My initial problem was with plots in list-columns and it took me a while to get to the theme_set option; hence this post :)
Created on 2020-05-15 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: