Closed
Description
Default labs are not created based on aesthetics in the geom when the aesthetic is in both the ggplot and geom_* call
library(tidyverse)
library(palmerpenguins)
penguins |>
ggplot(aes(x = flipper_length_mm, y = body_mass_g, colour = sex)) +
geom_point(aes(x = bill_depth_mm, y = bill_length_mm, colour = species))
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).
Created on 2024-05-20 with reprex v2.1.0