I have a data of growth rate year-wise. I have 2 issues here:
- An additional requirement is that an economic crisis happened in 1991. I need to shade that area with a particular color (let's say grey) to highlight that a crisis was there.
- I need to give Y-axis scale from 0 to 14. Now it is showing 6 to 14.
How can I solve these issues?
library(tidyverse) data<-tibble::tribble( ~year, ~growth, 1985L, 12L, 1986L, 12L, 1987L, 12L, 1988L, 9L, 1989L, 14L, 1990L, 6L, 1991L, 13L, 1992L, 11L, 1993L, 6L, 1994L, 14L, 1995L, 6L, 1996L, 13L, 1997L, 8L, 1998L, 12L, 1999L, 6L, 2000L, 9L ) data %>% ggplot(aes(year,growth))+ geom_line(size=1.5)+ theme_minimal()