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

chore: merge isoband/isolines functions #6021

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Conversation

teunbrand
Copy link
Collaborator

This PR doesn't address an issue, but I see it as a small chore.

Briefly, iso_to_path() and iso_to_polygon() were nearly identical functions.
This PR merges these with a switch, which simplifies reasoning about the contours somewhat as you only have to understand 1 function instead of 2.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

R/stat-contour.R Outdated Show resolved Hide resolved
Co-authored-by: Thomas Lin Pedersen <thomasp85@gmail.com>
@teunbrand teunbrand merged commit 5971ff4 into tidyverse:main Aug 26, 2024
13 checks passed
@teunbrand teunbrand deleted the merge_iso branch August 26, 2024 14:11
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.

2 participants