tests/test-defs.R

library(grid)
library(grImport2)
library(gridSVG)

pic <- readPicture("test-defs-input.svg")

gridsvg("test-defs-output.svg", width = 6, height = 6, annotate=FALSE)
grid.picture(pic, expansion = 0)
dev.off()

Try the grImport2 package in your browser

Any scripts or data that you put into this service are public.

grImport2 documentation built on Sept. 11, 2024, 5:19 p.m.