as_preview.plotmath | R Documentation |
Preview spork after conversion to plotmath. Creates and displays a temporary png file with a parsed expression.
## S3 method for class 'plotmath'
as_preview(x, stem = "plotmath_preview", width = 3, height = 1, ...)
x |
spork; see |
width |
passed to |
height |
passed to |
... |
passed arguments |
invisible filepath
Other preview:
as.png.plotmath()
,
as.png.spork()
,
as_preview()
,
as_preview.html()
,
as_preview.latex()
,
as_previews()
,
as_previews.default()
,
as_previews.spork()
,
ggplot.plotmath()
,
ggplot.spork()
library(magrittr)
'one joule (Omega) ~ 1 kg*m^2./s^2' %>%
as_spork %>%
as_plotmath %>%
as_preview
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.