[R] par(fig) problem

John Fox jfox at mcmaster.ca
Mon Feb 14 14:10:40 CET 2000


At 09:53 AM 2/14/2000 +0100, ros mathieu wrote:
>I'd like to plot four graphics on the same page but with different
>sizes. I've tried to use :
>
>par(fig=c(0,0.5,0,0.6))
>plot(fig1)
>par(fig=c(0.5,1,0,0.6))
>plot(fig2)
>etc...
>
>but when a figure is plotted, it erase the previous.
>I've tried to pass 'new=T' to plot function but it's not possible.
>What can I do ? is it a  bug ?
>I've already reported this a 2 or 3 month ago but I can't find out the
>answers I get.
>


Dear Mathieu,

See the documentation (in par) for mfcol and mfrow, which allow you to plot an array of figures, respectively by columns and rows. For example
	par(mfrow=c(3,2))
will direct subsequent plots to a 3 x 2 array, filled by rows.

I hope that this helps,
John




|----------------------------------------------------|
| John Fox                          jfox at McMaster.ca |
| Department of Sociology        McMaster University |
|----------------------------------------------------|
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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