[R] How to navigate in layout() created graph?
Rainer M Krug
r.m.krug at gmail.com
Fri Mar 7 14:02:01 CET 2008
On 07/03/2008, Charilaos Skiadas <cskiadas at gmail.com> wrote:
> 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.
Yes - I know that I can define the order when I call layout(mat=...,
...), but is there any way that I can skip one when plotting and
return to plot that one later? (e.g. plot subfigure 1, then 3 and
finally 2)
>
>
> >
> > --
> > 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
>
>
>
>
>
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT)
Plant Conservation Unit Department of Botany
University of Cape Town
Rondebosch 7701
South Africa
More information about the R-help
mailing list