[R] Plotting multiple figures
Thomas Vogels
tov at ece.cmu.edu
Fri Apr 27 15:33:27 CEST 2001
Bill Simpson <wsi at gcal.ac.uk> writes:
> On Fri, 27 Apr 2001, Sven Garbade wrote:
>
> > Morning,
> >
> > I've plotted multiple figures on one page, setup the page with n2mfrow.
> > This works fine, but I can't figure out how to change to a specific plot
> > (e.g. first row, second column) to add some details.
> I think the preferred way to make multiplot layouts is with layout().
> For example, to do 2 columns of 3 plots (6 in all), do
> layout(mat=matrix(1:6, 3, 2, byrow=FALSE))
> plot(x1,y1)
> plot(x2,y2)
> plot(x3,y3)
> plot(x4,y4)
> plot(x5,y5)
> plot(x6,y6)
> Column 1 has plots 1-3, column 2 has plots 4-6
Hi,
I believe Sven was asking about something else: he wants to add stuff
to a _specific_ plot. That's what 'screen' and friends are for.
(Sven: just use '?screen' in an R session and all the relevant
commands along with examples will come up.) Sadly though, 'screen' has
sometimes failed me.
Enjoy,
-tom
--
mailto:tov at ece.cmu.edu (Tom Vogels) Tel: (412) 268-6638 FAX: -3204
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list