I am relatively new to ggplot2, having used base graphics in R for many years. One thing I always liked about base graphics is the extra padding in the axes, so that the tw
You can tweak this behavior by influencing the way the y-axis is scaled. ggplot2 usually chooses the limits according to the data and expands the axis a litte.
The following example sets expansion to zero and uses custom limits instead for more control over the axes. As you can see, however, having the axes end at the maximum value is not always beneficial as the point characters may get cut off. So a little extra space is advised..
require(ggplot2)
x <- y <- 1:10
qplot(x, y) + theme_classic() +
scale_y_continuous(limits=c(-0.5,10), expand=c(0,0))