edf_plot {qrmtools} | R Documentation |
Plotting an empirical distribution function.
edf_plot(x, do.points = length(x) <= 100, log = "", xlim = range(x, na.rm = TRUE), main = "", xlab = "x", ylab = "Distribution function at x", ...)
x |
|
do.points |
|
log |
|
xlim |
x-axis limits; default |
main |
title. |
xlab |
x-axis label. |
ylab |
y-axis label. |
... |
additional arguments passed to the underlying
|
Returns the return value of the underlying plot.stepfun()
.
Marius Hofert
x <- c(5, 2, 4, 2, 3, 2, 2, 2, 1, 2) # example data edf_plot(x, verticals = FALSE) # the 'mathematical' version edf_plot(x, do.points = FALSE) # good for many sample points edf_plot(x) # the default edf_plot(x, log = "x") # logarithmic (edf_plot(x, log = "x")) # ... with return value ## Note: flat part below first jump cannot be shown in log-scale