Skip to content

Could element_geom use aesthetic argument names? #6347

Closed
@davidhodge931

Description

@davidhodge931

element_geom looks like a cool new feature.

Was wondering if there is a reason why colour/fill etc are not used - and instead ink/paper etc are?

It'd be cool if the arguments could align with the aesthetic names.

So currently like this...

penguins |> 
  ggplot() +
  geom_boxplot(aes(x = species, y = flipper_length_mm)) +
  theme(geom.boxplot = element_geom(ink = "blue", paper = "red")) 

This would seem much more intuitive...

penguins |> 
  ggplot() +
  geom_boxplot(aes(x = species, y = flipper_length_mm)) +
  theme(geom.boxplot = element_geom(colour = "blue", fill = "red")) 

Sorry if I'm missing something

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions