Plots the empirical cumulative distribution function as a stair step. A distribution view with no binning parameter to choose: every point is exactly represented, and group comparisons (quantiles, shifts, tails) are easy to read.
Usage
mark_ecdf(
plot,
mapping = NULL,
data = NULL,
position = NULL,
...,
n = 1000,
rasterize = FALSE,
rasterize_dpi = 300,
rasterize_dev = "cairo"
)Arguments
- plot
A plotit object
- mapping
Optional new aesthetics (
xis the sample)- data
Optional data for this layer
- position
Position adjustment.
- ...
Other arguments passed to the underlying step layer
- n
Oversampling factor for the step function (default 1000; use
Inffor the exact step function).- rasterize
If
TRUE, rasterize viaggrastr::rasterise().- rasterize_dpi
DPI for rasterization (default 300).
- rasterize_dev
Graphics device for rasterization (default
"cairo").

