[R] IMPORTANT - Add a plot to another plot

jim holtman
Tue, 09 Mar 2010 13:32:55 -0000

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]]