Array
How can I finally modify the colour of data points? Sometimes data overlaps, and I need colour to distinguish between cases. I also don't need the additional var-label in the legend, which is created automatically. Here is some similar MWE:
Code:
clear
input year pid var
2003 513 1500
2004 513 1550
2005 513 1500
2006 513 1600
2003 514 1600
2004 514 1600
2005 514 1700
2006 514 1800
end
xtset pid year
xtline var, overlay addplot(scatter var year)
0 Response to How to add scatter plot to xtline and modify its colours accordingly
Post a Comment