Re: [R] two plots super-impose

2007-08-03 Thread Greg Snow
- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, August 02, 2007 12:07 PM > To: R-help@stat.math.ethz.ch > Subject: [R] two plots super-impose > > Dear R users, > > I used plot(x,y) to draw a scatter

Re: [R] two plots super-impose

2007-08-02 Thread Sébastien
Hi Philip, par(new=TRUE) before your hist(y) lines should do the trick. You may have to modify some settings in case the axes are not overlayed perfectly. Sebastien [EMAIL PROTECTED] a écrit : > Dear R users, > > I used plot(x,y) to draw a scatter plot. I need to add another smaller > histogra

[R] two plots super-impose

2007-08-02 Thread Philip.He
Dear R users, I used plot(x,y) to draw a scatter plot. I need to add another smaller histogram on the same plot I just had. However when I used hist(y), the histogram was on another page. Any suggestion? Best Regards, Philip [[alternative HTML version deleted]] _