| latex2fun | R Documentation |
Construct R function from LaTeX expression.
latex2fun(latex_string, envir = parent.frame(), na.rm = FALSE)
latex_string |
string |
envir |
environment |
na.rm |
boolean; when |
function
x = seq(-2 * pi, 2 * pi, length.out = 500)
f = latex2fun("\\sin{x * a}")
f_x = f(x = x, a = 2)
plot(x, f_x, type = "l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.