powered by
Converts plotmath to png.
# S3 method for plotmath as.png( x, filename = tempfile(), width = 3, height = 1, units = "in", res = 150, ... )
plotmath; see as_plotmath
as_plotmath
path for image file
width
height
units
resolution
passed arguments
invisible filepath
Other preview: as.png.spork(), as_preview.latex(), as_preview.plotmath(), as_previews.spork(), as_previews(), as_preview(), ggplot.plotmath(), ggplot.spork()
as.png.spork()
as_preview.latex()
as_preview.plotmath()
as_previews.spork()
as_previews()
as_preview()
ggplot.plotmath()
ggplot.spork()
# NOT RUN { library(magrittr) library(latexpdf) 'one joule (Omega) ~ 1 kg*m^2./s^2' %>% as_spork %>% as_plotmath %>% as.png -> file file # }
Run the code above in your browser using DataLab