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 March 31, 2023, 11:17 p.m.