Hi,

I’m trying to create a time series plot with the data below. I´m trying to create one plot for men (Gender = 1) and one for women (Gender = 0) and use the mean of savings each year in the plot.
X-axis Year and Savings at the y-axis.


Year Savings Gender
2001 2 1
2002 3 1
2003 2 1
2004 5 1
2001 1 0
2002 3 0
2003 4 0
2004 5 0
2001 3 1
2002 5 1
2003 4 1
2004 1 1
.....

I appreciate all your help; thank you in advance!

Best,
Anders Hansen