RE: [R]

About this list Date view Thread view Subject view Author view Attachment view

From: Adaikalavan Ramasamy (
Date: Thu 17 Apr 2003 - 12:22:16 EST

Message-id: <>

You can partition the plotting region into an arrangement of smaller
plotting regions using nf <- layout(...). This allows you to put several
plots of different sizes on the same graph. Layout also allows you to
control where the sub plots go.

But it can be difficult to know if you have entered the correct
parameters else the ordering or number of plots can be screwed up. shows you the locations where the 1st, 2nd, ... graph
will be plotted.

Not only is it a very handy check before you plot but you can reuse the
same design if you plan on doing this repeatedly. Calling
AFTER plotting a graph will certainly destroy the previous plot. Try
running the example in layout().

-----Original Message-----
From: Wladimir Eremeev []
Sent: Thursday, April 17, 2003 2:35 AM
Subject: [R]

Dear r-help,

  Please, be so kind, tell me what does mean the parameter of
  I use R 1.6.2... Windows NT 4.0
  Unfortunately I cannot understand phrases from the help
  "n: number of figures to plot."
        what figures?

  "`' plots (part of) the current layout, namely the
    outlines of the next `n' figures."

    what figures?
    what does 'next' mean?

 I'm still trying to draw a legend outside a graph :)

    layout(matrix(c(1:2))) creates a wonderful layout.

calls to


draw a beautiful graph.

but call to (or any other parameter instead of 1) destroys it.

what should I say to the R to make it keep already drawn graphs and show
a legend on the other "panel" of the layout?

Best regards
Wladimir Eremeev                           

======================================================================== == Research Scientist Leninsky Prospect 33, Space Monitoring & Ecoinformation Systems Sector, Moscow, Russia, 119071, Institute of Ecology, Phone: (095) 135-9972; Russian Academy of Sciences Fax: (095) 954-5534

______________________________________________ mailing list

______________________________________________ mailing list

About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:42 EST