[R] show plot

Petr PIKAL petr.pikal at precheza.cz
Fri Jan 20 14:48:15 CET 2012


Hi

Yes with layout she can put several plots on one page, but if I consider 
20 plots per page and one minute per page inspection, 54000 plots is still 
more than 2000 pages and about 40 hours, which I do not consider as a well 
spent time.

Regards
Petr

> 
> Use layout() to put multiple plots on a single page. (Note that with 
>50k 
> plots you'll want layout() and multiple pages.)
> 
> Michael
> 
> On Jan 20, 2012, at 6:46 AM, Petr PIKAL <petr.pikal at precheza.cz> wrote:
> 
> >> 
> >> Thank you very much, 
> >> 
> >> but in *.pdf I can see 1 plot, may I‌ ask you another question?
> >> How can see more than one in each page?
> > 
> > You just press page down or up for moving through pdf document.
> > 
> > But seriously, try it yourself
> > 
> > lll <- split(rnorm(100) , rep(1:10, each=10))
> > pdf("test.pdf")
> > for (i in 1:10)
> > {
> > plot(lll[[i]])
> > }
> > dev.off()
> > 
> > R comes usually with quite extensive set of help for every function.
> > 
> > see
> > ?pdf
> > 
> > onefile
> > logical: if true (the default) allow multiple figures in one file. If 
> > false, generate a file with name containing the page number for each 
page. 
> > Defaults to TRUE, and forced to true if file is a pipe.
> > 
> > Regards
> > Petr
> > 
> > 
> >> 
> >> Best regards,
> >> Khodakarim
> > 
> >> On Fri, Jan 20, 2012 at 11:57 AM, Petr PIKAL <petr.pikal at precheza.cz> 

> > wrote:
> >> Huh
> >> 
> >> If you spend only 10 seconds inspecting one plot you will need about 
150
> >> hours for that task. I would recommend to reconsider this issue for 
your
> >> own sanity.
> >> 
> >> Anyway you can save them either to separate files or in multi page 
PDF
> >> document although I do not know if there is some limit in pdf pages. 
I
> >> have never seen any single pdf document with more than several 
hundred
> >> pages.
> >> 
> >> Regards
> >> Petr
> >> 
> >> 
> >>> 
> >>> Dear All
> >>> 
> >>> I have 54000 plots in R,
> >>> 
> >>> How can I observe them?
> >>> 
> >>> If I‌ have to save them one-by-one?
> >>> 
> >>> Soheila
> >>> 
> >>>   [[alternative HTML version deleted]]
> >>> 
> >>> ______________________________________________
> >>> R-help at 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.
> > 
> > ______________________________________________
> > R-help at 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.



More information about the R-help mailing list