stat_esf: Empirical Survival Function

View source: R/plotting.R

stat_esfR Documentation

Empirical Survival Function

Description

The empirical survival function (ESF) provides a visualization of a distribution. This is closely related to the empirical cumulative distribution function (ECDF). The empirical survival function is simply ESF = 1 - ECDF.

Usage

stat_esf(
  mapping = NULL,
  data = NULL,
  geom = "point",
  position = "identity",
  show.legend = NA,
  inherit.aes = TRUE,
  n = NULL,
  pad = FALSE,
  ...
)

Arguments

mapping

Set of aesthetic mappings created by aes().

data

The data to be displayed in this layer. This has the same usage as a ggplot2 stat function.

geom

The geometric object to use to display the data.

position

Position argument

show.legend

Should this layer be included in the legends?

inherit.aes

If FALSE, overrides the default aesthetic, rather than combining with them.

n

If NULL, do not interpolated. Otherwise, the number of points to interpolate.

pad

If TRUE, pad the ESF with additional points ⁠(-Inf, 0)⁠ and ⁠(0, Inf)⁠.

...

Other arguments to pass on to layer.


cmstatr documentation built on May 29, 2024, 8:44 a.m.