Skip to content

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
@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.

2 participants