Barbara.Rogo at uniroma1.it
2010-Mar-09 12:52 UTC
[R] IMPORTANT - Add a plot to another plot
? stato filtrato un testo allegato il cui set di caratteri non era indicato... Nome: non disponibile URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100309/8e587d55/attachment.pl>
try: plot(0) # first plot par(new=TRUE) plot(1) # second plot # need to make sure ranges agrees and whether to plot axes or not. Or you probably really want to use 'lines'/'points' On Tue, Mar 9, 2010 at 7:52 AM, <Barbara.Rogo@uniroma1.it> wrote:> > I have a graphic that I design with the command "plot", and I want to add > another graphic. If I use another time the command "plot" > with parameter "add=TRUE" It's wrong. Why? How I can resolve this problem? > Thanks > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]]
Look at the subplot function in the TeachingDemos package, does that 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 Barbara.Rogo at uniroma1.it > Sent: Tuesday, March 09, 2010 5:52 AM > To: r-help at r-project.org > Subject: [R] IMPORTANT - Add a plot to another plot > > > I have a graphic that I design with the command "plot", and I want to > add another graphic. If I use another time the command "plot" > with parameter "add=TRUE" It's wrong. Why? How I can resolve this > problem? > Thanks > [[alternative HTML version deleted]] > > ______________________________________________ > 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.