[R] how to draw cumulative histogram

Liaw, Andy andy_liaw at merck.com
Tue Nov 8 15:29:45 CET 2005


I'm not sure what a cumulative histogram is, but does the following help?

x <- rnorm(100)
plot(ecdf(x))

Andy

> From: Lisa Wang
> 
> Hello there,
> 
> I am using R to plot some cumulative histogram for my data. 
> Please help
> in this case.
> 
> Thank you
> 
> Lisa Wang
> Princess Margaret Hospital
> Toronto
> phone 416 946 4501 ext.4883
> 
> ______________________________________________
> 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
> 
>




More information about the R-help mailing list