geom_stepribbon
is an extension of the geom_ribbon
, and
is optimized for Kaplan-Meier plots with pointwise confidence intervals
or a confidence band.Step ribbon plots.
geom_stepribbon(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
kmplot = FALSE,
...
)
geom_stepribbon is an analog to geom_ribbon using step function.
see source reference
see source reference
see source reference
see source reference
see source reference
see source reference
see source reference
If TRUE
, missing values are replaced by the previous
values. This option is needed to make Kaplan-Meier plots if the last
observation has event, in which case the upper and lower values of the
last observation are missing. This processing is optimized for results
from the survfit function.
see source reference
ggplot2:::rd_aesthetics("geom", "ribbon")
geom_ribbon
geom_stepribbon
inherits from geom_ribbon
.