hello R-users, 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. Mathieu I run R 0.99-0 on a linux mandrake 7.0 -- ---------------------------------------------------------------------- Mathieu Ros - 13 rue b?vi?re - 38000 GRENOBLE - 04 76 491 370 http://mathieu.ros.free.fr/ DESS ing?nierie math?matique (biostatistiques) Universite Joseph Fourier, Grenoble ---------------------------------------------------------------------- l'exp?rience est le nom que chacun donne a ses erreurs. Wilde -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
hi> 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...in case it helps ... layout(rbind(c(0, 0), c(1, 2)), heights=c(4, 6)) will do the arrangement described above and ... layout.show(2) will show what the arrangement looks like. paul -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._