| as.expression.plotmath | R Documentation |
Coerces plotmath to expression by parsing as text.
## S3 method for class 'plotmath'
as.expression(x, ...)
x |
plotmath |
... |
ignored arguments |
expression
Other interface:
as_html.spar(),
as_html.spork(),
as_latex.spar(),
as_latex.spork(),
as_plotmath.spar(),
as_plotmath.spork(),
as_previews.spork(),
as_spork.character(),
htmlToken(),
latexToken(),
plotmathToken()
Other plotmath:
[.plotmath(),
[[.plotmath(),
as.png.plotmath(),
as_plotmath(),
as_plotmath.greek(),
as_plotmath.spar(),
as_plotmath.spork(),
concatenate.plotmath(),
ggplot.plotmath(),
goodToken(),
plotmathToken()
x <- c(
'V_c./F',
'AUC_ss',
'C_max_ss',
'var^eta_j'
)
x <- as_spork(x)
x <- as_plotmath(x)
x
as.expression(x)[[4]]
as.expression(x[[4]])
class(as.expression(x))
lapply(as.expression(x), class)
as.expression(as_plotmath(as_spork('V_c./F')))
as.expression(as_plotmath(as_spork(character(0))))
library(magrittr)
'gravitational force (kg\\.m/s^2.)' %>%
as_spork %>%
as_plotmath %>%
as.expression -> label
label
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.