I made this chart with geom_bar() , I would like the bars to stick to the bottom line, indicated by the arrows. How could I do it?
geom_bar()
Is there any parameter of the theme() function that can solve this problem?
theme()
Just add scale_y_continuous(expand = c(0,0)) to the chart. Example:
scale_y_continuous(expand = c(0,0))
library(ggplot2) ggplot(iris, aes(x = Species)) + geom_bar() + scale_y_continuous(expand = c(0,0))