Convert SVG to a grid
rasterGrob
object
svg_to_rasterGrob(svg_text, width = NULL, height = NULL, css = NULL, ...)
character string containing valid SVG
output width,height in pixels or NULL
(the default)
which inputes the size from the SVG
character string containing CSS text. This requires your system has a recent version of librsvg.
other arguments passed to `grid::rasterGrob()`.
rasterGrob object wrapping the nativeraster returned from rsvg