You can use expand_limits
ggplot(mtcars, aes(wt, mpg)) + geom_point() + expand_limits(y=0)
Here is a comparison of the two:


Starting from version 1.0.0 of ggplot2 , you can specify only one limit and have another, as was usually determined by setting the second limit to NA . This approach will allow both the expansion and truncation of the range of axes.
ggplot(mtcars, aes(wt, mpg)) + geom_point() + scale_y_continuous(limits = c(0, NA))

asking it with ylim(c(0, NA)) gives an identical digit.
Brian Diggs Jun 26 '12 at 19:14 2012-06-26 19:14
source share