coolbutuseless / minisvg

Create SVG documents with R
https://coolbutuseless.github.io/package/minisvg/
MIT License
31 stars 3 forks source link

Handler for doc$add('polygon') #1

Closed dmi3kno closed 4 years ago

dmi3kno commented 4 years ago

As discussed in this Twitter thread, could you please add a handler for polygons EQSArmmUwAAajuY

coolbutuseless commented 4 years ago

As you mentioned, allowing data.frame or matrix input would also be convenient.

coolbutuseless commented 4 years ago

Fixed in 5725818fd

Can now specify (xs, ys) arguments in all places you can create polygons and polylines.

Also now expanded to accept

See vignette: https://coolbutuseless.github.io/package/minisvg/articles/specifying-coords-for-polygons-and-polylines.html