I am trying to plot reverse ecdf (what="1-F" equivalent of Ecdf function in Hmisc) using ggplot.
Here is the data:
dat = data.frame(ID = rep(c(1001:1015),each=3),
Month = rep(c("April", "July", "October")),
Value = runif(45,2.0,14.6))
I could plot the ecdf for each Month using ggplot2:
ggplot(dat, aes(Value, colour = Month)) + stat_ecdf()
However, I need to plot the reverse ecdf for each month. I tried several ways but couldn't work it out. Any help appreciated!
Best,
db
Better if you can share the data, but try: