how to plot empirical distribution function?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to plot empirical distribution function?

kiotoqq
I have the table
company: 1 2 3 4 5 6 7 8 9 10 11
transaction volume:120 40 75 85 55 75 55 90 90 55 155

how can I plot the empirical distribution function of it? I only know there is the ecdf, but I dont know how to use it, please help!
Reply | Threaded
Open this post in threaded view
|

Re: how to plot empirical distribution function?

kiotoqq
I got it so far, but dont know if its right:

> x=c(120,40,75,85,55,75,55,90,90,55,155)
> Fn <- ecdf(x)
> plot(Fn,verticals = TRUE, ?
>