View source: R/mathExpression.R
mathExpression | R Documentation |
Construct LaTeX expressions for JASP output
mathExpression(x, inline = TRUE)
x |
A string that contains the LaTeX code for the math expression |
inline |
Should the expression be inline or in display mode? |
# Escape the backslash character for LaTeX code
jaspBase::mathExpression("\\alpha + \\beta")
# Alternatively use the raw character constant
jaspBase::mathExpression(r"{\alpha + \beta}")
# By default expressions are inline, to disable use
jaspBase::mathExpression(r"{ \bar{x} = \frac{\sum_i^n x_i}{n} }", inline = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.