[R] Cumulated probability plot

Deepayan Sarkar deepayan at stat.wisc.edu
Thu May 15 19:39:52 CEST 2003


On Thursday 15 May 2003 12:04, klaus.thul at infineon.com wrote:
> Hello,
>
> is there an easy possiblity in R to produce a plot of the cumulative
> probability of a variable in R? (variable given as a sample vector)

What do you mean by cumulative probability ? If you mean the Empirical 
Distribution Function, try

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

-Deepayan




More information about the R-help mailing list