tests/testpolyline.R

library(grid)
require(gridSVG)

    grid.polyline(x=outer(c(0, .5, 1, .5), 5:1/5),
                  y=outer(c(.5, 1, .5, 0), 5:1/5),
                  id.lengths=rep(4, 5),
                  gp=gpar(col=1:5, lwd=3))
  
grid.export("polyline.svg")

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, 3:09 p.m.