i want to add labels to the red recession bars eg for the 2008 GFC bar, add the label "2008 GFC.
how would i use this? is it just geom_text?
Code so far is:
ggplot(quarterly_data, aes(x=date, y= Unemployment))+
geom_line()+
geom_rect(data = recession, inherit.aes=FALSE , aes(xmin = date_start, xmax = date_end, ymin = -Inf, ymax = Inf),
fill = "red", alpha= 0.3)+
ggtitle("UK Unemployment rate and corresponding recessionary periods (1971-2020)")+
theme(plot.title = element_text(face="bold",hjust = 0.5))+
labs(x="Year", y="Unemployment Rate (%)", caption = ("Data Source: ONS"))+
scale_y_continuous(breaks=c(0,2,4,6,8,10,12))+
theme_classic()