[R] Generate two bell curves

peter dalgaard pdalgd at gmail.com
Fri Oct 26 07:40:13 CEST 2012

On Oct 26, 2012, at 03:17 , phantastic wrote:

> How do I generate two bell curves, both with the same mean but different
> standard deviations? I used to have a script for it but I lost it.
> Thanks.

curve(...., from=..., to=...)
curve(...., add=TRUE)

If you plot the tallest one first, you won't need to diddle the ylim setting.

Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com

More information about the R-help mailing list