Plot the variability of an object of class "probability" as a histogram
Source:R/util_tplotfunctions.R
hist.probability.Rd
This hist
ogram method is a utility to visualize the variability of the probabilities obtained with Pr
or tailPr
, which can also be interpreted as the probability density for the whole-population frequencies.
Arguments
- p
- breaks
NULL
or as in functionhist
. IfNULL
(default), an optimal number of breaks for each probability distribution is computed.- legend
one of the values
"bottomright"
,"bottom"
,"bottomleft"
,"left"
,"topleft"
,"top"
,"topright"
,"right"
,"center"
(seelegend
): plot a legend at that position. A valueFALSE
or any other does not plot any legend. Default"top"
.- fill.alpha.f
Numeric, default 0.125: opacity of the histogram filling.
0
means no filling.- showmean
logical: show the means of the probability distributions? The means correspond to the probabilities about the next observed unit.
- ...
other parameters to be passed to
flexiplot
.