lionel- / ggstance

Horizontal ggplot2 components
201 stars 19 forks source link

Misleading error messages for missing aesthetics #5

Closed Ax3man closed 8 years ago

Ax3man commented 8 years ago

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.

DoaneAS commented 8 years ago

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.

lionel- commented 8 years ago

This should now be fixed, thanks for the report

Ax3man commented 8 years ago

Great Lionel, your package is very useful indeed!