| GeomSeriesText {ggtricks} | R Documentation | 
Create series of circles labels text
Description
geom_series_text is designed to be used in concert with geom_series_circles.
It renders the label mapping to the final position of the series of circles sequence.
There are three arguments absolutely needed in aes() mappings:
-  
xA vector mapping the abscissa axisx, i.e. a character vector whenxis a numerical vector, or a numerical vector whenyis a character vector. -  
yA vector mapping the ordinate axisy, i.e. a numerical vector whenxis a character vector or vice versa. -  
labelLabels. 
Usage
GeomSeriesText
geom_series_text(
  mapping = NULL,
  data = NULL,
  position = "identity",
  show.legend = NA,
  na.rm = FALSE,
  inherit.aes = TRUE,
  ...
)
Arguments
mapping | 
 Set of aesthetic mappings created by   | 
data | 
 The data to be displayed in this layer. There are three options: If  A  A   | 
position | 
 Position adjustment, either as a string, or the result of
a call to a position adjustment function. Cannot be jointly specified with
  | 
show.legend | 
 logical. Should this layer be included in the legends?
  | 
na.rm | 
 If   | 
inherit.aes | 
 If   | 
... | 
 Other arguments passed on to   | 
Format
An object of class GeomSeriesText (inherits from GeomText, Geom, ggproto, gg) of length 1.
Value
A ggplot2 layer.
Examples
my_df <- data.frame(cat = c("Apple", "Banana", "Pineapple"), val = c(2.65, 4.5, 6.25))
my_df |>
  ggplot2::ggplot() +
  geom_series_circles(ggplot2::aes(cat, val)) +
  geom_series_text(ggplot2::aes(cat, val, label = cat)) +
  ggplot2::coord_equal()