TeX
instead.Deprecated; use TeX
instead.
latex2exp(string, output = c("expression", "character", "ast"))
Returns an expression (see the output
parameter).
A character vector containing LaTeX expressions. Note that any backslashes must be escaped (e.g. "$\alpha").
The returned object, one of "expression" (default, returns a plotmath expression ready for plotting), "character" (returns the expression as a string), and "ast" (returns the tree used to generate the expression).