Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

latex2exp

Converts a LaTeX string to a plotmath expression. Deprecated; use TeX instead.


Description

Converts a LaTeX string to a plotmath expression. Deprecated; use TeX instead.

Usage

latex2exp(string, output = c("expression", "text", "ast"))

Arguments

string

A character vector containing LaTeX expressions. Note that any backslashes must be escaped (e.g. "$\alpha").

output

The returned object, one of "expression" (default, returns a plotmath expression ready for plotting), "text" (returns the expression as a string), and "ast" (returns the tree used to generate the expression).

Value

Returns an expression (see the output parameter).


latex2exp

Use LaTeX Expressions in Plots

v0.5.0
MIT + file LICENSE
Authors
Stefano Meschiari [aut, cre]
Initial release
2021-03-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.