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

Charilaos Skiadas cskiadas at gmail.com
Fri Mar 7 13:56:12 CET 2008


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



More information about the R-help mailing list