fork download
  1. library(ggplot2)
  2. library(ggpubr)
  3.  
  4. var_list <- rep(names(iris[1:4]),2)
  5. plot_list <- list()
  6. for (i in 1:8) {
  7. p = ggplot(iris) +
  8. geom_boxplot(aes_string(x=var_list[i]))
  9. plot_list[[i]] = p
  10. }
  11. ggarrange(
  12. plotlist = plot_list,
  13. ncol=4,
  14. nrow=2
  15. )
Success #stdin #stdout #stderr 0.56s 50472KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error in library(ggpubr) : there is no package called ‘ggpubr’
Execution halted