Convert SVG to a grid rasterGrob object

svg_to_rasterGrob(svg_text, width = NULL, height = NULL, css = NULL, ...)

Arguments

svg_text

character string containing valid SVG

width, height

output width,height in pixels or NULL (the default) which inputes the size from the SVG

css

character string containing CSS text. This requires your system has a recent version of librsvg.

...

other arguments passed to `grid::rasterGrob()`.

Value

rasterGrob object wrapping the nativeraster returned from rsvg