| geom_colon_label | R Documentation |
This function defines a custom ggplot2 layer that allows users to add labels to the colon parts based on the predefined blueprint. It takes in aesthetics for x, y, and part, and uses the StatColonLabels ggproto object to compute the necessary data for positioning and labeling the colon parts. The resulting layer can be used in conjunction with other ggplot2 layers to create detailed visualizations of the colon with informative labels.
geom_colon_label(
mapping = NULL,
data = NULL,
show.legend = NA,
variant = "standard",
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
show.legend |
logical. Should this layer be included in the legends?
|
variant |
A character string specifying the variant of the colon blueprint to use. |
... |
Additional parameters passed to the layer, such as fill, color, size, etc. |
The geom_colon_label function creates a layer that can be added to a ggplot2 plot. It requires the aesthetics x, y, and part to be specified, which correspond to the position and the specific part of the colon to be labeled.
The variants can be defined in the colon_variants list, which should contain different blueprints for the colon geometry.#'
A ggplot2 layer that can be added to a plot to visualize labels on the colon parts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.