[R] lattice: layout and number of pages

Deepayan Sarkar deepayan.sarkar at gmail.com
Thu Sep 9 08:24:34 CEST 2010


On Wed, Sep 8, 2010 at 5:49 AM, Philipp Pagel <p.pagel at wzw.tum.de> wrote:
>
>        Dear expeRts,
>
> ?xyplot says: "In general, giving a high value of ‘layout[3]’ is not
> wasteful because blank pages are never created."
>
> But the following example does generate blank pages - well except for
> the ylab:
>
> data(barley)
> require(lattice)
> stripplot(yield~year|site, barley, layout=c(2,1,5))
>
> Did I misinterpret the sentence from the help page or is this a bug?

The statement used to be true at some point. Unfortunately it no
longer seems possible to (easily) determine with 100% accuracy whether
a page will be blank. I will remove that sentence from the
documentation, but add a warning when lattice detects likely blank
pages.

-Deepayan

> Yes - I know that his works fine:
>
> stripplot(yield~year|site, barley, layout=c(2,1))
>
> Just curious...
>
> cu
>        Philipp
>
> --
> Dr. Philipp Pagel
> Lehrstuhl für Genomorientierte Bioinformatik
> Technische Universität München
> Wissenschaftszentrum Weihenstephan
> Maximus-von-Imhof-Forum 3
> 85354 Freising, Germany
> http://webclu.bio.wzw.tum.de/~pagel/
>
> ______________________________________________
> 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