These are from R for data Science book
ggplot(data = demo) +
geom_bar(mapping = aes(x = cut, y = freq), stat = "identity")
What does stat = "Identity"
do?
ggplot(data = diamonds) +
geom_bar(mapping = aes(x = cut, y = ..prop.., group = 1))
What does group = 1
do? I didnt find a difference even when I put group = 0, 2, ... etc.