geom_magic_text: Magic Method to Draw labels

View source: R/geom-magic-text.R

geom_magic_textR Documentation

Magic Method to Draw labels

Description

a wrapper function of ggtext::geom_richtext, but can formatted labels by LaTeX style.

Usage

geom_magic_text(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  geom = "text",
  parse = TRUE,
  ...
)

Arguments

mapping

set of aesthetic mappings created by aes() or aes_().

data

the data to be displayed in this layer.

stat

the statistical transformation to use on the data for this layer, as a string.

position

position adjustment, either as a string, or the result of a call to a position adjustment function.

geom

one of text, label or richtext.

parse

logical or a parse function. IF TRUE (default), the labels will be parsed into expression.

...

others passing to ggplot2::geom_<geom>().

Value

a gg layer object.

Author(s)

Hou Yun


Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.