Description Usage Arguments Value Author(s) References Examples
High density region (HDR) boxplots are a variation of boxplots. HDR plots are based on a density estimate of the marginal distribution.
Cutoff values for the probability are defined in the parameter probs
to define regions. In a uni-modal situation, the HDR plots with probability probs=0.25
show the boxes of a regular boxplot. The code is based on the hdrcde
package by hyndman, who also introduced the plots.
1 |
data |
dataset |
x |
factor variable |
y |
values |
probs |
vector of probabilities as cut-offs for the density regions |
fill |
fill color of highest density regions. Either a color description (name or hex string), or grouping variable. |
... |
other parameters passed on to the ggplot2 framework |
ggplot2 layer of highest density region boxplots.
Heike Hofmann
hyndman
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.