histWAC: histWAC

histWACR Documentation

histWAC

Description

Plot a normal histogram but add a cumulative distribution function.

Usage

histWAC(
  x,
  Exceedance = FALSE,
  ADD = FALSE,
  breaks = 100,
  freq = FALSE,
  logAxis = "",
  ...
)

Arguments

x

The usual first argument to hist().

Exceedance

Logical (default FALSE). If TRUE, the exceedance is plotted instead of the conventional cumulative distribution.

ADD

Logical (default FALSE) specifying if the distribution should be added to an existing one.

breaks

Number of breaks for histogram. Default = 100.

freq

Logical controlling plotting frequency or density. Default FALSE.

logAxis

Character vector specifying if the axes should be log. Default: FALSE. The construction of tick marks and labels for the abscissa is designed for special applications where the range is small, so these may be inappropriate for some applications. (bug to be fixed)

...

Additional arguments passed to the plot() routine to control graphics parameters etc.

Details

The usual histogram with conventional arguments is used, but the result then has an added cumulative distribution function with scale on the right side. The 'density' plot is used and the cumulative distribution function has limits from 0 to 1.

Value

T – The result is the plot, but the usual value returned by hist() is also returned invisibly. Assign it to a variable to use it.

Author(s)

William Cooper


NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.