[R] graphing the normal distribution

David White dwhite at ling.ohio-state.edu
Sun Jun 24 21:25:24 CEST 2001


I'd like to make some simple example graphs of the normal distribution,
varying standard deviation, mean, and kurtosis across examples.

I have been able to manipulate mean and sd using rnorm and hist:
y_hist(rnorm(1000000, mean=100, sd=50), 50, plot=F)

Two questions:

1) n=100000 seems like a lot of samples to approach a smooth
curve. Is there a way to make the curve smooth, but computationally less

2) What can I do to change the "peakiness" of the distribution?

Many thanks in advance.


S. David White
sdavidwhite at bigfoot.com
Columbus, Ohio

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list