I'm trying to find a way to force the x-axis to be at y=0 instead of slightly below it. I've looked around for answers and have found there are solutions for plot in base R, but haven't found a way to do this in ggplot2. Apologies for the simple example and that I can't post the resulting image as I don't have enough reputation. All help appreciated!
EDIT1 (incorrect, corrected by @joran): In addition, if I were to have negative values I'd want them to be displayed instead of being cut off. The current linked solution would cut off negative values. I've also changed my example data to have a negative number to illustrate my point.
EDIT2: I ran the code in the linked example with '-1:5's instead of '1:5's and see that the limits expand appropriately. However, the x-axis labels are still at the bottom of the chart along the new minimum, y=-1, instead of being fixed along y=0. Sorry for the poor description. Link to image of Excel example.
Code Example:
library(ggplot2)
test_df <- data.frame(dates = as.Date(c('2015-01-01', '2015-01-02', '2015-01-03', '2015-01-04', '2015-01-05', '2015-01-06', '2015-01-07', '2015-01-08', '2015-01-09', '2015-01-10', '2015-01-11', '2015-01-12', '2015-01-13', '2015-01-14', '2015-01-15')), numbers = c(13,12,11,10,9,8,8,7,6,5,4,3,2,-1,0))
test_plot <- ggplot(test_df) +
geom_line(aes(x = dates,
y = numbers),
size = 1)