search for: cumulatice

Displaying 1 result from an estimated 1 matches for "cumulatice".

Did you mean: cumulate
2012 May 04
1
Absolute cumulative curve with ecdf/stepfun?
Hi, I have two variables ranging both from 0 to 1 (n=500 each). Now I am interested in plotting them both in one plot (using ggplot2). So far I used ecdf() (from an example I found with google) to get values for the cumulatice distribution function which gives a relative curve. I also want to do the same plot but using absolute cumulative values instead of relative. Can that be done with ecdf or with stepfun() to get values I can use to plot the curves? Here a small example that shows the result with ecdf: library(ggpl...