SyntaxFix
Write A Post
Hire A Developer
Questions
Using @joran's sample data,
ggplot(dat, aes(x=xx, fill=yy)) + geom_histogram(alpha=0.2, position="identity")
note that the default position of geom_histogram is "stack."
geom_histogram
see "position adjustment" of this page:
docs.ggplot2.org/current/geom_histogram.html