plot(ecdf(mtcars$mpg),
main = "Cumulative Frequency of Miles/(US) gallon",
xlab = "Miles/(US) gallon")
# Functions
library(ggplot2)
ggplot(mtcars, aes(mpg)) +
stat_ecdf(col = "darkblue") +
labs(title = "Cumulative Frequency of Miles/(US) gallon",
y = "Cumulative Frequency", x = "Miles/(US) gallon")