tests/testcomment.R

library(grid)
library(gridSVG)

dev.new(width=6, height=6)
grid.rect(name = "mainrect")
grid.comment("This is a comment", "mainrect")
grid.export("comment-test.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.