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

Refactor applying defaults in geom_sf() #5834

Merged
merged 7 commits into from
Apr 29, 2024

Conversation

teunbrand
Copy link
Collaborator

@teunbrand teunbrand commented Apr 8, 2024

This PR aims to fix a roadblock for #5833 and fixes #3164 (comment).

Briefly, applying the default aesthetics for geom_sf() happended in sf_grob() instead of the typical Geom$use_defaults().
This brings geom_sf() back in line with other geoms, by applying the defaults in the use_defaults() method.
The GeomSf$use_defaults() method just calls that method from other Geoms for different parts of the data, depending on the geometry type.

This should solve a roadblock for #5833 where themeable defaults are applied in the use_defaults() method.

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

@teunbrand teunbrand merged commit 8e63882 into tidyverse:main Apr 29, 2024
7 of 12 checks passed
@teunbrand teunbrand deleted the refactor_geom_sf_defaults branch April 29, 2024 09:12
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.

None yet

2 participants