Skip to content

Conversation

@teunbrand
Copy link
Collaborator

This PR aims to fix #6445.

To avoid the confusion that it is suggested that fixed aesthetics can also be passed to ggplot(). They cannot.
There was a second suggestion in the issue:

and further down, in "Details":
Static aesthetics can't be set globally with ... like they would in geom_*() functions. To change global static aesthetic values for geometries, use the geom argument in the theme() function.

But I think this is off-topic for the ?ggplot() docs.

@teunbrand teunbrand added this to the ggplot2 4.0.1 milestone Oct 7, 2025
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 0a60186 into tidyverse:main Oct 20, 2025
13 checks passed
@teunbrand teunbrand deleted the fix_6445 branch October 20, 2025 08:41
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.

Use non-mapped, static aesthetic in ggplot() function as global default for geometries

2 participants