
Last chance! 50% off unlimited learning
Sale ends in
stat_ecdf(mapping = NULL, data = NULL, geom = "step",
position = "identity", n = NULL, ...)
aes
or aes_string
. Only needs to be set
at the layer level if you are overriding the plot defaults.qplot(rnorm(1000), stat = "ecdf", geom = "step")
df <- data.frame(x = c(rnorm(100, 0, 3), rnorm(100, 0, 10)),
g = gl(2, 100))
ggplot(df, aes(x, colour = g)) + stat_ecdf()
Run the code above in your browser using DataLab