Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix warning when using weight with stat_bin #1921
A warning is emitted although it seems to be doing the right thing.
library("ggplot2") d <- data.frame(x=c(1,1,2), y=c(1,1,10)) ggplot(d) + geom_histogram(aes(x=x), binwidth=1) ggplot(d) + geom_histogram(aes(x=x, weight=y), binwidth=1)