tests/testplot.R

library(grid)
library(gridSVG)
dev.new(width=6, height=6)
grid.rect(gp=gpar(col="black", fill=NA))
set.seed(1000)
grid.multipanel(vp=viewport(w=.7, h=.7, gp=gpar(col="black", fill=NA)),
                newpage=FALSE)
grid.export("plot.svg")
dev.off()

Try the gridSVG package in your browser

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

gridSVG documentation built on Oct. 4, 2017, 3:01 a.m.