markdown_help: Build markdown expressions for styled + colored 'ggtext'...

View source: R/markdown.R

markdown_helpR Documentation

Build markdown expressions for styled + colored ggtext strings

Description

Style markdown text with subscripts, superscripts, and colors.

Usage

markdown_help()

subs(x)

sups(x)

bfblu(x)

blblu(x)

bmblu(x)

bdblu(x)

bfcyn(x)

blcyn(x)

bmcyn(x)

bdcyn(x)

bfgrn(x)

blgrn(x)

bmgrn(x)

bdgrn(x)

bfmag(x)

blmag(x)

bmmag(x)

bdmag(x)

bforn(x)

blorn(x)

bmorn(x)

bdorn(x)

bfred(x)

blred(x)

bmred(x)

bdred(x)

bfvlt(x)

blvlt(x)

bmvlt(x)

bdvlt(x)

bfylw(x)

blylw(x)

bmylw(x)

bdylw(x)

bwht(x)

bg95(x)

bg90(x)

bg85(x)

bg80(x)

bg75(x)

bg70(x)

bg65(x)

bg60(x)

bg55(x)

bg50(x)

bg45(x)

bg40(x)

bg35(x)

bg30(x)

bg25(x)

bg20(x)

bg15(x)

bg10(x)

bg05(x)

bblk(x)

binv(x)

pfblu(x)

plblu(x)

pmblu(x)

pdblu(x)

pfcyn(x)

plcyn(x)

pmcyn(x)

pdcyn(x)

pfgrn(x)

plgrn(x)

pmgrn(x)

pdgrn(x)

pfmag(x)

plmag(x)

pmmag(x)

pdmag(x)

pforn(x)

plorn(x)

pmorn(x)

pdorn(x)

pfred(x)

plred(x)

pmred(x)

pdred(x)

pfvlt(x)

plvlt(x)

pmvlt(x)

pdvlt(x)

pfylw(x)

plylw(x)

pmylw(x)

pdylw(x)

pwht(x)

pg95(x)

pg90(x)

pg85(x)

pg80(x)

pg75(x)

pg70(x)

pg65(x)

pg60(x)

pg55(x)

pg50(x)

pg45(x)

pg40(x)

pg35(x)

pg30(x)

pg25(x)

pg20(x)

pg15(x)

pg10(x)

pg05(x)

pblk(x)

pinv(x)

ifblu(x)

ilblu(x)

imblu(x)

idblu(x)

ifcyn(x)

ilcyn(x)

imcyn(x)

idcyn(x)

ifgrn(x)

ilgrn(x)

imgrn(x)

idgrn(x)

ifmag(x)

ilmag(x)

immag(x)

idmag(x)

iforn(x)

ilorn(x)

imorn(x)

idorn(x)

ifred(x)

ilred(x)

imred(x)

idred(x)

ifvlt(x)

ilvlt(x)

imvlt(x)

idvlt(x)

ifylw(x)

ilylw(x)

imylw(x)

idylw(x)

iwht(x)

ig95(x)

ig90(x)

ig85(x)

ig80(x)

ig75(x)

ig70(x)

ig65(x)

ig60(x)

ig55(x)

ig50(x)

ig45(x)

ig40(x)

ig35(x)

ig30(x)

ig25(x)

ig20(x)

ig15(x)

ig10(x)

ig05(x)

iblk(x)

iinv(x)

Arguments

x

A character vector of text to be styled.

Details

Subscript/superscript functions are:

  subs   subscript
  sups superscript



All remaining functions in this family start with a prefix character as follows:

  prefix = b   bold
  prefix = i italic
  prefix = p plain



Black, white, and invisible text functions suffixes are:

  blk   black
  wht white
  inv invisible


For example, the function bwht styles markdown text as bold and white.

Greyscale text suffixes take the form:

  g05   5:95 white:black ratio
  g10 10:90 white:black ratio
  ... ...
  g90 90:10 white:black ratio
  g95 95:5 white:black ratio


For example, the function pg45 styles markdown text as plain and grey with a 45:55 white:black ratio.

Other common-color text function names append an infix and a suffix to the selected prefix, as follows:

  infix = f full intensity
  infix = l light
  infix = m medium
  infix = d dark
   
  suffix = blu   blue
  suffix = cyn cyan
  suffix = grn green
  suffix = mag magenta
  suffix = orn orange
  suffix = red red
  suffix = vlt violet
  suffix = ylw yellow

For example, the function pfred styles markdown text as plain and full-intensity red.

Value

A markdown-styled character vector.

See Also

Other strings: blank(), chn(), delim(), fsub(), gr, ipat(), makestr(), maxnch(), ox(), ox_vals(), pgrid_help(), revstr(), spaces(), ss_help(), tocase(), weave()

Other colors: sca()

Other plots: color_funs(), gg_help(), gr, pals_help(), u2u_help()


j-martineau/uj documentation built on Sept. 14, 2024, 4:40 a.m.