stat_ecdf2: Compute empirical cumulative distribution

View source: R/stat_ecdf.R

stat_ecdf2R Documentation

Compute empirical cumulative distribution

Usage

stat_ecdf2(mapping = NULL,
  data = NULL,
  geom = "step",
  position = "identity",
  ...,
  height = 1,
  pad = TRUE,
  decreasing = FALSE,
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE)

Arguments

mapping

Set of aesthetic mappings created by aes() or aes_(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping.

data

The data to be displayed in this layer.

geom

The geometric object to use display the data

position

Position adjustment, either as a string, or the result of a call to a position adjustment function.

...

other arguments passed on to layer. This can include aesthetics whose values you want to set, not map. See layer for more details.

height

Max height. By default, set to 1.

pad

If TRUE, pad the ecdf with additional points -Inf and Inf

decreasing

If TRUE, the ecdf shows upper probabilities. By default, set to FALSE.

na.rm

If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

show.legend

logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display.

inherit.aes

The position adjustment to use for overlappling points on this layer

Examples

ggplot(searchConsole, aes(impressions, pagePath)) +
  stat_ecdf2()

abikoushi/ggsomestat documentation built on March 21, 2024, 7:03 a.m.