Posts by Ícaro Agostino • 11 points
1 post
-
1
votes2
answers107
viewsA: Using for loop in a list with charts in R
Jorge Mendes' answer is right, the code should be: library(ggplot2) library(gridExtra) df <- data.frame(x = 1:100, y1 = runif(100), y2 = runif(100)^2) plot_list <- list( plot1 <- ggplot(df,…