Question: I want to plot the average gdp over time, seperately (but on the same graph) for cities in each of the years from 1985 to
I want to plot the average gdp over time, seperately (but on the same graph) for cities in each of the years from 1985 to 1987. Please provide the answer with R codes.
| year | city | startyear | gdp |
| 1990 | 1 | 1985 | 265 |
| 1991 | 1 | 1985 | 266 |
| 1992 | 1 | 1985 | 275 |
| 1990 | 2 | 1985 | 266 |
| 1991 | 2 | 1985 | 422 |
| 1992 | 2 | 1985 | 526 |
| 1990 | 3 | 1986 | 332 |
| 1991 | 3 | 1986 | 520 |
| 1992 | 3 | 1986 | 225 |
| 1990 | 4 | 1987 | 652 |
| 1991 | 4 | 1987 | 366 |
| 1992 | 4 | 1987 | 991 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
