y axis 0 not starting at corner for bar plot


Basically what the title says and picture shows. The y axis is starting at 0, but the zero is not at the corner of the plot and my bars are just kind of floating and it's annoying. How do I fix this or am I doomed?

I had originally used the normal barplot() function but the width wasn't working; didn't get any errors, it just didn't ever change the width of the bars.

Here's my code in case this helps.

ggplot(counts, aes(x = backwards environment probabilities, y = count_of_ones, fill = backwards environment probabilities)) +
ggtitle("Individuals Alive at End of Last Foraging Opportunity") +
labs( x = "Evolved Environment", y = "Number of Individuals") +
geom_bar(stat = "identity", width = 0.5) +
theme_classic() +
theme(legend.position="none") +
ylim(0, 2000)

Nevermind, found it! I can fix it with the scale_y_continuous, saw another comment saying that it expands the axes to give room for points I guess.

See https://www.youtube.com/watch?v=qVkKHljNB4I