| plot_math | R Documentation |
This function allows you to preview the layout that shape_math()
calculates. It renders the positioned glyphs and lines (fraction bars,
radical overlines, cancel lines, etc.) using grid graphics, and shows the
position of the baseline relative to the equation. This is primarily
a debugging and visualization tool.
plot_math(shaped, id = 1)
shaped |
The output of a call to |
id |
The index of the expression to show if |
This function is called for its side effects
## Not run:
shaped <- shape_math(r"(\frac{a}{b})", family = "STIX Two Math")
plot_math(shaped)
shaped <- shape_math("x^2 + y^2 = z^2", family = "STIX Two Math")
plot_math(shaped)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.