Skip to content

Feature Request: Make Missing mapping Errors More Informative #2706

Closed
@billdenney

Description

@billdenney

When generating a plot recently, I accidentally left out the mapping. When running the code, I got an uninformative error indicating that the mapping was missing. Can the errors for missing mappings be improved to indicate something similar to "No mapping provided for required aesthetic 'x'" (and similar)?

library(ggplot2)         
ggplot(data.frame(A=1)) +
geom_line()              
#> Error in order(data$PANEL, data$group, data$x): argument 3 is not a vector

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