Skip to content

Cumulated probability plot

3 messages · klaus.thul@infineon.com, Deepayan Sarkar, Don MacQueen

#
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)

Regards,
Klaus Thul
#
On Thursday 15 May 2003 12:04, klaus.thul at infineon.com wrote:
What do you mean by cumulative probability ? If you mean the Empirical 
Distribution Function, try

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

-Deepayan
#
Yes it is possible.

Start your search for a solution with the quantile() function:
0%         25%         50%         75%        100%
-2.73069396 -0.76456805  0.02988956  0.62436410  2.59762742

-Don
At 7:04 PM +0200 5/15/03, klaus.thul at infineon.com wrote: