[R] par(mfrow=c(4,2)) vs. lattice

Gabor Grothendieck ggrothendieck at gmail.com
Tue Jun 10 19:34:17 CEST 2008


mfrow is for classic graphics and when the graphs are unrelated.

lattice is for grid graphics and typically when the panels are related
such as being the same plot but conditioned on different factor levels.

These are typical uses only as one can write arbitary panels with lattice
and produce related graphs using mfrow with some extra work.

On Tue, Jun 10, 2008 at 1:09 PM, stephen sefick <ssefick at gmail.com> wrote:
> I have had good sucess with the par(mfrow=c(#,#)) for formating graphs and
> they look good to me.  I have seen a lot of use of the lattice package and
> thought I would go fishing on the list for y'all's comments.  Is there a
> time when lattice would be easier more appropriate for certain graphics over
> par(mfrow(#,#)).
> Just wondering
>
> Stephen
>
> --
> Let's not spend our time and resources thinking about things that are so
> little or so large that all they really do for us is puff us up and make us
> feel like gods. We are mammals, and have not exhausted the annoying little
> problems of being mammals.
>
> -K. Mullis
>
>        [[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.
>



More information about the R-help mailing list