I also did (inside the for loop): if (nCount==1) p1=tt if (nCount==2) p2=tt if (nCount==3) p3=tt if (nCount==4) p4=tt if (nCount==5) p5=tt if (nCount==6) p6=tt
... and then after the loop: windows() my.multiplot(p1, p2, p3, p4, p5, p6, cols=3) All the sub-plots in that multi-plot page are all identical! I cannot imagine how many hours I have been spending on fighting this issue! On 12/7/11, Michael <comtech....@gmail.com> wrote: > Thanks a lot! > > Now I can see the individual plot, but still not the > originally-desired multi-plot-on-one-page? > > Any thoughts? Thanks again! > > On 12/7/11, Yihui Xie <x...@yihui.name> wrote: >> This is probably one of the most frequently asked questions. The >> answer is to print() the objects. See R FAQ 7.22. >> >> http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f >> >> Regards, >> Yihui >> -- >> Yihui Xie <xieyi...@gmail.com> >> Phone: 515-294-2465 Web: http://yihui.name >> Department of Statistics, Iowa State University >> 2215 Snedecor Hall, Ames, IA >> >> >> >> On Wed, Dec 7, 2011 at 4:38 PM, Michael <comtech....@gmail.com> wrote: >>> I found that if I run each "qplot" manually it would plot out >>> something... >>> >>> but if I put it into the loop, >>> >>> it just doesn't work at all - sometimes it refused to plot anything... >>> >> > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.