Skip to content

Suggestion for more informative error message when () missing from geom_* #3571

Closed
@mine-cetinkaya-rundel

Description

@mine-cetinkaya-rundel

If you omit the () at the end of a geom, you get the following error:

library(ggplot2)

ggplot(mtcars, aes(y = mpg, group = vs)) +
  geom_boxplot
#> Error: Don't know how to add geom_boxplot to a plot

I think the error would be more informative if it continued on to say "Did you mean geom_boxplot()?"

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