Here is my code and my output (CDF):
install.packages("ggplot2")
library(ggplot2)
chol <- read.table(url("http://assets.datacamp.com/blog_assets/chol.txt"), header = TRUE)
df <- data.frame(x = chol$AGE)
ggplot(df, aes(x)) + stat_ecdf()
I'd like to plot a CCDF function, what is the "inverse" of the CDF function: CCDF(x)=1-CDF(x). I cannot find any sources about this problem. Is there any easy way?