##-- Draw an Empirical CDF (and see the default title ..)
plotStep(rnorm(15))
plotStep(runif(25), cad.lag=FALSE)
plotStep(runif(25), cad.lag=FALSE, add=TRUE, lty = 2)
ui <- sort(runif(20))
plotStep(ui, ni <- cumsum(rpois(19, lambda=1.5) - 1.5), cad.lag = FALSE)
plotStep(ui, ni, verticals = TRUE, right.points = TRUE)
plotStep(rnorm(201), pch = '.') #- smaller points
Run the code above in your browser using DataLab