histWAC | R Documentation |
Plot a normal histogram but add a cumulative distribution function.
histWAC( x, Exceedance = FALSE, ADD = FALSE, breaks = 100, freq = FALSE, logAxis = "", ... )
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. |
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.
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.
William Cooper
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.