Skip to content

Checking ... #3196

Closed
Closed
@ColinFay

Description

@ColinFay

Following this twitter thread.

labs() uses ..., but the name of the arguments are not checked, so this can lead to errors when passing tile = instead of title, or any other typo.

It would be nice for the user to have at least a warning (or an error) here:

library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width)) + 
  geom_point() + 
  labs(tile = "Title has a typo")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions