| GeomCutoff | R Documentation |
GeomCutoff draws a cutoff at each supplied xintercept. The statistical
position is transformed by the active coordinate system, while height is
measured as a fraction of the panel. The result is a short stem that starts
at the distribution baseline and follows ggplot2::coord_flip() without
changing the orthogonal scale. Optional label, side, and call_id
aesthetics let a teaching helper add measured callouts without training the
count axis.
When the x scale is positioned at the top, the stem starts at that panel
edge and points inward instead.
GeomCutoff
geom_cutoff(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
...,
height = 0.2,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. |
stat |
The statistical transformation to use. Defaults to
|
position |
A position adjustment. Defaults to |
... |
Other arguments passed to |
height |
Stem height as a fraction of the panel, from |
na.rm |
If |
show.legend |
Logical. Should this layer be included in legends? |
inherit.aes |
If |
GeomCutoff is a ggplot2::Geom object.
geom_cutoff() is the conventional layer constructor. It does not compute
cutoffs. show_cutoffs() supplies the optional marker and callout metadata
after it computes one whole-distribution plan.
geom_cutoff() returns a ggplot2 layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.