| expr2latex | R Documentation |
expr2latex() translates a “R graphics annotation”
expression to the corresponding LaTeX one.
escapeLatex(), very similar to its original,
escape_latex() from fortunes, escapes certain character
combinations, such that the result can be used in LaTeX.
expr2latex(expr)
escapeLatex(x)
expr |
an R object of |
x |
a |
The expr2latex() function is recursively rendering (sub)
expressions, until it uses the internal renderAtom() for simple
symbols (is.symbol).
We currently work with some tables of math annotation expressions,
lifted from the corresponding C source of R itself. (Hidden in
simsalpar's namespace, we have AccentTable,
BinTable, RelTable, Lgreek and Ugreek,
currently.)
The current implementation is still incomplete.
a character string with the LaTeX
expression corresponding to “R graphics annotation” expression
expr.
Martin Maechler.
plotmath for mathematical expressions to annotate R
graphics.
toLatex() and its ftable method,
toLatex().
expr2latex( quote( N[sim] ) )
expr2latex( quote( N[sim] ~ O(n) ) )
expr2latex( quote(x %notin% N) )
expr2latex( quote(x %+-% epsilon) )
expr2latex( quote(N[s*m^2]) )
expr2latex( quote( 2^{N[sim] - 3} ~~~ O(n^{n^2}) ) )
escapeLatex(c("#{positives}", "A | B"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.