I want to draw a hbar chart with three variables via the following command:
graph hbar incomep90 incomep95 incomep99, over(year) stacked
How do I filter the years that I don't want to draw? I have 28 years from 1989 to 2017 but I want to select three of them and draw only these years, all in the same chart.
Like: graph hbar incomep90 incomep95 incomep99, for (year==2000 year==2008 year==2015) stacked
So an if filter like graph hbar incomep90 incomep95 incomep99 if (year == XX) doesn't work for me because I want to select three years out of 29.
How do I do that?
Thanks a lot
0 Response to Small question on bar charts
Post a Comment