Hi, I would greatly appreciate it if someone could help me with the following issue.
I have a country year cross sectional data(country=16, year=14).
In order to show the annual change of certain variables by country, I have created line graphs with xtline command.
Manually I have added vertical lines to express the year in which certain policy was implemented/halted in certain countries.
(I did this manually since I didn't know the code to add vertical lines when the location(year) of the vertical lines differ by country)
Now, what I really want to do is shade the area on the right or left side of the vertical line to show when the policies are in effect and when they are not.
Are there any ways of doing this?
Best,
Tate
I have a country year cross sectional data(country=16, year=14).
In order to show the annual change of certain variables by country, I have created line graphs with xtline command.
Code:
xtline x1 x2 x3, t(year) i(country)
(I did this manually since I didn't know the code to add vertical lines when the location(year) of the vertical lines differ by country)
Now, what I really want to do is shade the area on the right or left side of the vertical line to show when the policies are in effect and when they are not.
Are there any ways of doing this?
Best,
Tate
Comment