I run a loop and I need to store some plots in a list. Sometimes they are of different types, because I need to insert dummy plots when I cannot compute the actual plots.
Why is it that base plots cannot be stored in a list?
library(effects)
df=data.frame(response=sample(10,10),predictor=c(1:10))
model0=lm(response~predictor,df)
plot.list=list()
plot.list[[1]]=plot(Effect("predictor",model0))
plot.list[[2]]=plot(predictor~response,df)
plot.list