R bloggers

The ‘rsvg’ Package: High Quality Image Rendering in R

FavoriteLoadingAdd to favorites

The new rsvg package renders (vector based) SVG images into high-quality bitmap arrays. The resulting image is an array of 3 dimensions: height * width * 4 (RGBA) and can be written to png, jpeg or webp format: # create an svg image library(svglite) library(ggplot2) svglite(“plot.svg”, width = 10, height = 7) qplot(mpg, wt, data = mtcars, colour = factor(cyl))…
Original Post: The ‘rsvg’ Package: High Quality Image Rendering in R

Leave a Reply

Your email address will not be published. Required fields are marked *