set.seed(42)

qplot(1:5, stat = "ecdf", geom = "step")

plot of chunk unnamed-chunk-1


x <- rnorm(5)
qplot(x, stat = "ecdf", geom = "step")

plot of chunk unnamed-chunk-1

ggplot(NULL, aes(x = x)) + stat_ecdf(geom = "step")

plot of chunk unnamed-chunk-1

ggplot(NULL, aes(x = x)) + stat_ecdf(geom = "step") + 
    stat_ecdf(geom = "point")

plot of chunk unnamed-chunk-1