element_magic_text: Theme element that enables formula

element_formulaR Documentation

Theme element that enables formula

Description

theme element that can parse text to expression or richtext.

Usage

element_formula(
  parse = TRUE,
  family = NULL,
  face = NULL,
  size = NULL,
  colour = NULL,
  hjust = NULL,
  vjust = NULL,
  angle = NULL,
  lineheight = NULL,
  margin = NULL,
  color = NULL,
  debug = FALSE,
  inherit.blank = FALSE
)

Arguments

parse

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

family

Font family

face

Font face ("plain", "italic", "bold", "bold.italic")

size

text size in pts.

colour, color

Line/border colour. Color is an alias for colour.

hjust

Horizontal justification (in [0, 1])

vjust

Vertical justification (in [0, 1])

angle

Angle (in [0, 360])

lineheight

Line height

margin

Margins around the text. See margin() for more details. When creating a theme, the margins should be placed on the side of the text facing towards the center of the plot.

debug

If TRUE, aids visual debugging by drawing a solid rectangle behind the complete text area, and a point where each label is anchored.

inherit.blank

Should this element inherit the existence of an element_blank among its parents? If TRUE the existence of a blank element among its parents will cause this element to be blank as well. If FALSE any blank parent element will be ignored when calculating final element state.

Value

a element_magic_text object.

Author(s)

Hou Yun


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