Hi

On 5 Sep 2006 at 8:42, Ales Ziberna wrote:

Date sent:              Tue, 05 Sep 2006 08:42:27 +0200
From:                   Ales Ziberna <[EMAIL PROTECTED]>
To:                     Am Stat <[EMAIL PROTECTED]>
Copies to:              roger koenker <[EMAIL PROTECTED]>,
        R-help@stat.math.ethz.ch
Subject:                Re: [R] plot a new picture against an old one to see 
the difference
        between them

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

see also ?lines or ?points to put lines or points over previously 
plotted image.

HTH
Petr

> 
> 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" <[EMAIL PROTECTED]>
> > To: "Am Stat" <[EMAIL PROTECTED]>
> > 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.

Petr Pikal
[EMAIL PROTECTED]

______________________________________________
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.

Reply via email to