View source: R/geom-magic-text.R
latex_richtext | R Documentation |
Helper function to convert a LaTeX string to richtext.
latex_richtext(x, sup = "^", sub = "_", br = "\n", env = parent.frame())
x |
a character vector. |
sup |
one-length character, indicates that characters after this is superscript. |
sub |
one-length character, indicates that characters after this is subscript. |
br |
string, separator of lines. |
env |
environment to evaluate each expression in. |
Hou Yun
name <- c("A_2", "B^3", "C_2", "D^{123 + x}")
name <- latex_richtext(name)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.