svg_to_rasterGrob: Convert SVG to a 'grid' 'rasterGrob' object

View source: R/rsvg.R

svg_to_rasterGrobR Documentation

Convert SVG to a grid rasterGrob object

Description

Convert SVG to a grid rasterGrob object

Usage

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

grid::rasterGrob() object containing the nativeRaster returned from rsvg


coolbutuseless/ggsvg documentation built on Sept. 14, 2024, 5:48 p.m.