Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

geom_histogram() throwing warning with use of 'weight' aesthetic #2204

Closed
kaybenleroll opened this Issue Jul 13, 2017 · 2 comments

Comments

Projects
None yet
2 participants

ggplot2 version: 2.2.1

While it appears to be creating the correct plot, using the weight aesthetic with geom_histogram() causes the throwing of a warning message

Warning: Ignoring unknown aesthetics: weight

A reproducible example can be found from using the midwest data in the ggplot2 (2e) book:

ggplot(midwest, aes(percbelowpoverty)) +
    geom_histogram(aes(weight = poptotal), binwidth = 1) +
    ylab("Population (1000s)")

karawoo added the reprex label Jul 13, 2017

Collaborator

karawoo commented Jul 13, 2017

I can't reproduce this unfortunately. Could you please use the reprex package to create your reproducible example and include a call to sessionInfo()? That will help me diagnose the problem.

Collaborator

karawoo commented Jul 20, 2017

I've closed this issue due to lack of requested reprex. If you still care about this bug, please open a new issue with a reprex.

karawoo closed this Jul 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment