Misleading error messages for missing aesthetics
Ax3man opened this issue · 3 comments
For any of geom_linerangeh
, geom_pointrangeh
, geom_crossbarh
, geom_errorbarh
, the error for missing aesthetics still report the required aesthetics for the vertical versions.
ggplot(mtcars) + geom_linerangeh()
Error: geom_linerangeh requires the following missing aesthetics: x, ymin, ymax
Even though it needs y
, xmin
and xmax
.
This may be confusing for users that are changing an existing call to a horizontal one, where they already are supplying x
, ymin
and ymax
.
This may be confusing for users that are changing an existing call to a horizontal one, where they already are supplying x, ymin and ymax.
Is definitely confusing, but appreciate the answer above.
This should now be fixed, thanks for the report
Great Lionel, your package is very useful indeed!