[R] two plots super-impose
Greg Snow
Greg.Snow at intermountainmail.org
Fri Aug 3 16:25:14 CEST 2007
It's not clear exactly what you want, but you may want to look at the
layout function, or the subplot function in the TeachingDemos package.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of
> Philip.He at sanofi-aventis.com
> Sent: Thursday, August 02, 2007 12:07 PM
> To: R-help at stat.math.ethz.ch
> Subject: [R] two plots super-impose
>
> 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]]
>
> ______________________________________________
> 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