Produces a step function confidence interval for survival curves. This function is taken from the utile.visuals package by Eric Finnesgard. That package is not used because of its strong dependencies.
geom_stepconfint( mapping =NULL, data =NULL, stat ="identity", position ="identity", na.rm =FALSE,...)
Arguments
mapping: Aesthetic mappings with aes() function. Like geom_ribbon(), you must provide columns for x, ymin (lower limit), ymax (upper limit).
data: The data to be displayed in this layer. Can inherit from ggplot parent.
stat: The statistical transformation to use on the data for this layer, as a string. Defaults to 'identity'.
position: Position adjustment, either as a string, or the result of a call to a position adjustment function.
na.rm: If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.
...: Optional. Any other ggplot geom_ribbon() arguments.