Re: [R] plot a new picture against an old one to see the difference between them

From: Ales Ziberna <aleszib_at_gmail.com>
Date: Tue 05 Sep 2006 - 06:42:27 GMT

Maybe
par(mfrow=c(1,2))

would do the trick. It puts two plots (of any kind) to the same device next to each-other. You have to run the command before the plotting commands. To have again only one plot per device, use par(mfrow=c(1,1))

Best,
Ales Ziberna

Am Stat pravi:
> Dear Roger,
>
> Thanks, that's really helpful, do you know how to deal with it if the two
> plots are generated by plot(), not by contour().
>
> Best,
>
> Leon
>
>
> ----- Original Message -----
> From: "roger koenker" <roger@ysidro.econ.uiuc.edu>
> To: "Am Stat" <amstat2006@gmail.com>
> Sent: Monday, September 04, 2006 8:06 PM
> Subject: Re: [R] plot a new picture against an old one to see the difference
> between them
>
>

>> for the second call to contour  use the argument add=TRUE.
>>
>> On Sep 4, 2006, at 6:42 PM, Am Stat wrote:
>>
>>> Hello, useR:,
>>>
>>> Suppose I have two plots made by using contour() function, say  Cont1 and 
>>> Cont2 respectively.
>>>
>>> They have slightly difference because of the two slightly different  data 
>>> I used.
>>>
>>> I want to see the difference between them so I want to plot Cont2  on 
>>> Cont1, are there any methods to plot it without filling the  frame of 
>>> Cont1 totally of Cont2.
>>> I mean, how I can integreate the two plots together that they kind  of 
>>> have weighted colors?
>>>
>>> Thanks very much in Advance!
>>>
>>> Leon
>>> [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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@stat.math.ethz.ch 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 Tue Sep 05 17:05:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 07 Sep 2006 - 07:51:18 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.