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

Ales Ziberna aleszib at gmail.com
Tue Sep 5 08:42:27 CEST 2006


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 at ysidro.econ.uiuc.edu>
> To: "Am Stat" <amstat2006 at 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 at 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 at 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.
>



More information about the R-help mailing list