Plot the variability of an object of class "probability" as a histogram
Source:R/util_tplotfunctions.R
hist.probability.Rd
This graphics::hist()
ogram method is a utility to visualize the variability of the probabilities obtained with Pr()
, which can also be interpreted as the probability density for the whole-population frequencies.
Arguments
- p
Object of class "probability", obtained with
Pr()
.- breaks
NULL
or as in functiongraphics::hist()
. 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"
(seegraphics::legend()
): 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, default
TRUE
: 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()
.