I would like to add a sum of total HR's to my ggplot histogram, but am getting stuck. I was hoping to create a histogram of the 2019, 2018, 2017, etc.. MLB seasons, and show the distribution of HR's hit across the league. I thought it would be helpful to include the total HR's hit each year.
My code is below:
ggplot(Batting_2019, aes(hr2019))+
geom_histogram(aes(y=..density..),
breaks=seq(0,60, by=3), col="white",fill="navy", alpha=.75)+
labs(title = "Home Runs hit in 2019")+
xlab("Home Run Totals")+
ylab("Frequency")+
geom_density(col=2)