| geom_colon | R Documentation |
This function defines a custom ggplot2 layer that allows users to plot the colon geometry based on the predefined blueprint. It takes in aesthetics for x, y, and part, and uses the StatColon ggproto object to compute the necessary data for plotting the colon structure. The resulting layer can be used in conjunction with other ggplot2 layers to create detailed visualizations of the colon.
geom_colon(
mapping = NULL,
data = NULL,
variant = "standard",
show.legend = NA,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
variant |
A character string specifying the variant of the colon blueprint to use. |
show.legend |
logical. Should this layer be included in the legends?
|
... |
Additional parameters passed to the layer, such as fill, color, size, etc. |
The geom_colon 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 plotted.
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 the colon geometry.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.