Re: [R] How to navigate in layout() created graph?

From: Charilaos Skiadas <cskiadas_at_gmail.com>
Date: Fri, 07 Mar 2008 07:56:12 -0500

On Mar 7, 2008, at 7:18 AM, Rainer M Krug wrote:

> Hi
>
> I created a complex layout with using layout() and it looks exactly as
> I need it. But I don't want to print in the order in which the
> subfigure are numbered, but in a different order.
>
> How can I navigate in the layout so that I can specify the subfigure
> in which to plot?
>
> At the moment I am using a function which is converting the number to
> mfg parameter for par, but it does not seem to work as expected.
>
> Thanks,
>
> Rainer
>

Look at documentation of ?layout. The "mat" argument determines the order in which the figures appear. The example code that talks about scatterplot with marginal histograms should show you how that works.

In other words, to the best of my knowledge, you specify in the call to layout in which order the new figures you create will be filling the layout.

>
> --
> Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT)
>
> Plant Conservation Unit Department of Botany
> University of Cape Town
> Rondebosch 7701
> South Africa

Haris Skiadas
Department of Mathematics and Computer Science Hanover College



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. Received on Fri 07 Mar 2008 - 12:58:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 07 Mar 2008 - 13:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive