[R] cumulative frequency distribution plot
Adelchi Azzalini
azzalini at stat.unipd.it
Wed Jun 25 08:47:00 CEST 2003
On Tuesday 24 June 2003 20:19, Tommy E. Cathey wrote:
> Does R do cumulative frequency distribution plots?
I am not sure you what you mean by that;
if it is "empirical cumulative distribution function", then try this:
n <-10
x <- rnorm(n)
plot(c(min(x)-1,sort(x), max(x+1)), c(0:n,n)/n, type="s",
xlab="data", ylab="ecdf")
rug(x)
regards,
Adelchi Azzalini
--
Adelchi Azzalini <azzalini at stat.unipd.it>
Dipart.Scienze Statistiche, Università di Padova, Italia
http://azzalini.stat.unipd.it/
More information about the R-help
mailing list