stat_normal_surv_func: Normal Survival Function

Description Usage Arguments

View source: R/plotting.R

Description

The Normal survival function provides a visualization of a distribution. A normal curve is fit based on the mean and standard deviation of the data, and the survival function of this normal curve is plotted. The survival function is simply one minus the CDF.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
stat_normal_surv_func(
  mapping = NULL,
  data = NULL,
  geom = "smooth",
  position = "identity",
  show.legend = NA,
  inherit.aes = TRUE,
  n = 100,
  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 Sept. 30, 2021, 5:08 p.m.