Re: [R] How to add a new plot in the same graph using add=T at the command plot?

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Wed, 09 Jun 2010 17:02:12 +0200

Hi

where did you find parameter add=T.

You can use

par(new=T)
before using new plot command

or use

points, lines

Regards
Petr

r-help-bounces_at_r-project.org napsal dne 09.06.2010 16:42:25:

> I forgot to show my code... it is like this
>
> jpeg()
> > plot(x,y,main="str", xlab="str",ylab="str", axes=FALSE)
> > axis(1,at=seq(0,4.5,by=0.5),pos=0)
> > axis(2,at=seq(0,100,by=1.0),pos=0)
> > arrows(x, y, x, ic_esq, length=0.1, angle=90, code=3)
> > arrows(x, y, x, ic_dir, length=0.1, angle=90, code=3)
> > plot(x1,y1, add=T)
> Warning messages:
> 1: In plot.window(...) : "add" não é um parâmetro gráfico
> 2: In plot.xy(xy, type, ...) : "add" não é um parâmetro gráfico
> 3: In axis(side = side, at = at, labels = labels, ...) :
> "add" não é um parâmetro gráfico
> 4: In axis(side = side, at = at, labels = labels, ...) :
> "add" não é um parâmetro gráfico
> 5: In box(...) : "add" não é um parâmetro gráfico
> 6: In title(...) : "add" não é um parâmetro gráfico
>
> Thanks
>
>
> On Wed, Jun 9, 2010 at 11:29, Larissa Lucena
<larissalucena_at_gmail.com>wrote:
>
> > Hi, there!
> >
> > I'm having kind this same problem
> >
> > https://stat.ethz.ch/pipermail/r-help/2008-October/178221.html
> >
> > but I want to display another plot of my data, which is a point with
two
> > arrows indicating confidence interval, in the same graph that I've
just
> > plotted another, but the "add=T" is not functioning, I'm getting the
same
> > error
> >
> > Warning messages:
> > 1: In plot.window(...) : "add" não é um parâmetro gráfico
> > 2: In plot.xy(xy, type, ...) : "add" não é um parâmetro gráfico
> > 3: In axis(side = side, at = at, labels = labels, ...) :
> > "add" não é um parâmetro gráfico
> > 4: In axis(side = side, at = at, labels = labels, ...) :
> > "add" não é um parâmetro gráfico
> > 5: In box(...) : "add" não é um parâmetro gráfico
> > 6: In title(...) : "add" não é um parâmetro gráfico
> >
> > In all tutorials I search, I see that the form of doing that is using
the
> > add=T... Is there another way?
> >
> > Thanks in advance!
> >
> > --
> > Larissa
> >
>
>
>
> --
> Larissa
>
> [[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.



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. Received on Wed 09 Jun 2010 - 15:05:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jun 2010 - 15:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive