I have used ggplot2 to create plot. . Here plotmodel is a function which generates individual plot based on input and i use myplot which is a list to store the plots returned by plotmodel .
for (i in 1:le) {
myplot[[i]]<-plotmodel(df2,colnames(df2)[i],z[[i]],xnames[i])
}
I have also created a single plot called "plotinfec" .
My plots work fine if I execute individually. Can you please help or give suggestion on how can I display plotinfec and myplot in a single window .