Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dmi3kno opened this issue Feb 9, 2020 · 2 comments
Closed

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

dmi3kno opened this issue Feb 9, 2020 · 2 comments

Comments

@dmi3kno
Copy link
Contributor

dmi3kno commented Feb 9, 2020

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

@coolbutuseless
Copy link
Owner

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

@coolbutuseless
Copy link
Owner

Fixed in 5725818

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

Also now expanded to accept

  • 'xs' as a data.frame with 'x' and 'y' columns for the coordinates
  • 'xs' as a matrix where first 2 columns are the x and y coordinates.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants