Closed
Description
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
Labels
No labels