Hi, I making a figure with six sub-plots using par(mfcol=c(2,3)). In the last sub-plot I want to have two graphs instead of one. I have tried using par(fig=x,y,z,v) but this par seems to overwrite the first par. Is there a simple solution? Thanks! Anna -- View this message in context: http://r.789695.n4.nabble.com/Multiple-plots-in-one-subplot-tp4203525p4203525.html Sent from the R help mailing list archive at Nabble.com.
On 16/12/11 19:36, annek wrote:> Hi, > I making a figure with six sub-plots using par(mfcol=c(2,3)). In the last > sub-plot I want to have two graphs instead of one. I have tried using > par(fig=x,y,z,v) but this par seems to overwrite the first par. Is there a > simple solution?If I understand you correctly you simply need to use points() and/or lines(). See the help for these. If these functions do not solve your problem you'll have to make your question clearer. cheers, Rolf Turner
Hi> > Hi, > I making a figure with six sub-plots using par(mfcol=c(2,3)). In thelast> sub-plot I want to have two graphs instead of one. I have tried using > par(fig=x,y,z,v) but this par seems to overwrite the first par. Is therea> simple solution?You can try ?layout or grid graphic. This gives you powerfull functionality but it probably is not so simple as par. Regards Petr> Thanks! > > Anna > > -- > View this message in context: http://r.789695.n4.nabble.com/Multiple- > plots-in-one-subplot-tp4203525p4203525.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
Look at the layout function, it may do what you want. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of annek > Sent: Thursday, December 15, 2011 11:36 PM > To: r-help at r-project.org > Subject: [R] Multiple plots in one subplot > > Hi, > I making a figure with six sub-plots using par(mfcol=c(2,3)). In the > last > sub-plot I want to have two graphs instead of one. I have tried using > par(fig=x,y,z,v) but this par seems to overwrite the first par. Is > there a > simple solution? > Thanks! > > Anna > > -- > View this message in context: http://r.789695.n4.nabble.com/Multiple- > plots-in-one-subplot-tp4203525p4203525.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.