Learn R Programming

GNGTools (version 1.0.0)

geom_stepribbon: geom_stepribbon geom_stepribbon is an extension of the geom_ribbon, and is optimized for Kaplan-Meier plots with pointwise confidence intervals or a confidence band.

Description

Step ribbon plots.

Usage

geom_stepribbon(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  kmplot = FALSE,
  ...
)

Value

geom_stepribbon is an analog to geom_ribbon using step function.

Arguments

mapping

see source reference

data

see source reference

stat

see source reference

position

see source reference

na.rm

see source reference

show.legend

see source reference

inherit.aes

see source reference

kmplot

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

Aesthetics

ggplot2:::rd_aesthetics("geom", "ribbon")

See Also

geom_ribbon geom_stepribbon inherits from geom_ribbon.