'In R - How do I plot the data from the row where the date=='"2020 Q1' to the last row of the dataframe?
example of the data:
Date | Inflation |
---|---|
2020 Q1 | 2 |
2020 Q2 | 2.1 |
2020 Q3 | 2 |
2020 Q4 | 2.1 |
I am using ggplot ggplot(CPI,aes(x=date,y=inflation,group=1))+geom_line()
but I would like to only plot from whichever row number that contains date= 2020 Q1 until the last row of the set (which will change everytime as I am getting webscraping the data from a website).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|