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

Support user-supplied polygons #127

Merged
merged 3 commits into from
Feb 14, 2024
Merged

Support user-supplied polygons #127

merged 3 commits into from
Feb 14, 2024

Conversation

grantmcdermott
Copy link
Owner

@grantmcdermott grantmcdermott commented Feb 14, 2024

Closes #126.

Have been meaning to add this to open up the door for spatial support... But actually prompted by @eddelbuettel (and implicitly @kjhealy) nerd-sniping me. https://bsky.app/profile/eddelbuettel.com/post/3klf4t4musj2y

Happy Valentine's Day, folks!

pkgload::load_all("~/Documents/Projects/tinyplot")
#> ℹ Loading tinyplot

i = seq(0, 2*pi, by = 0.01)
x = 16*sin(i)^3
y = 13*cos(i) - 5*cos(2*i) - 2*cos(3*i) - cos(4*i)

plt(
  x, y,
  type = "polygon",
  col = "red", fill = adjustcolor("firebrick", 0.8),
  axes = FALSE, xlab = NA, ylab = NA
)

Created on 2024-02-14 with reprex v2.1.0

@grantmcdermott grantmcdermott merged commit dcfaa65 into main Feb 14, 2024
3 checks passed
@grantmcdermott grantmcdermott deleted the polygon branch February 14, 2024 17:31
grantmcdermott added a commit that referenced this pull request Feb 14, 2024
- Simultaneously addresses legend support for polygon types that was missing from previous PR (#127)
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

Successfully merging this pull request may close these issues.

"polygon"
1 participant