Description Usage Arguments Value Examples
Converts a LaTeX string to a plotmath
expression.
1 |
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). |
Returns an expression (see the output
parameter).
1 2 3 4 5 |
expression(`$\alpha$` = paste("", "", alpha, , , , ""))
expression(`The ratio of 1 and 2 is $\frac{1}{2}$` = paste("The ratio of 1 and 2 is ",
"", frac(paste("1"), paste("", "2")), ""))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.