Broken 'geom_barh' or stupid user?
r-cheologist opened this issue · comments
r-cheologist commented
Lionel Henry commented
You also need to flip your aes specification and pass class
as y
aesthetic:
ggplot(mpg, aes(y = class)) + geom_barh()
Note there was a bug in the version currently on CRAN due to which the above line wouldn't work :/
With current CRAN ggstance you need to pass counth
explictly:
ggplot(mpg, aes(y = class)) + geom_barh(stat = "counth")
This is now fixed on github and should be on CRAN within 2 weeks, hopefully next week.