Dear all,
I am trying to plot the audit cycles of companies for small, medium and large companies over the years depending on the government ideology (leftwing, center or rightwing).
I want to compare the development of the audit cycles over the years depending on the government ideology. So far, I have tried to use the following command:
With this command, I get the following graph:

The lowest scatter plot refers to big companies, the medium one to medium companies and the upper one to small companies. What I am trying to do is to turn the scatterplot black in years with rightwing government, red in years with leftwing governments and grey in years with center governments.
So far, the legend is mixing up the government ideology with the company sizes and the colors are also mixed up for the different government ideologies.
Is there a way to generate two legends? One legend with the different company sizes and one with the different government ideologies?
Or is there any other command that is working better?
Thank you very much in advance for your help, any help is highly appreciated!
Thanks a lot,
Chris
I am trying to plot the audit cycles of companies for small, medium and large companies over the years depending on the government ideology (leftwing, center or rightwing).
I want to compare the development of the audit cycles over the years depending on the government ideology. So far, I have tried to use the following command:
Code:
twoway connected cycle_bc cycle_mc cycle_sc year, xlabel(2000(1)2020, labsize(vsmall)) /* */ legend(label(3 "Rightwing government") label(2 "Leftwing government") label(1 "Center government") size(medium)) /* */ lcolor(gs7 red black) mcolor(gs7 red black) mlcolor(gs7 red black) ytitle("Exam quota", size(small)) /* */ xtitle("Years") title("Exam quotas companies (in years)", size(medium))
The lowest scatter plot refers to big companies, the medium one to medium companies and the upper one to small companies. What I am trying to do is to turn the scatterplot black in years with rightwing government, red in years with leftwing governments and grey in years with center governments.
So far, the legend is mixing up the government ideology with the company sizes and the colors are also mixed up for the different government ideologies.
Is there a way to generate two legends? One legend with the different company sizes and one with the different government ideologies?
Or is there any other command that is working better?
Thank you very much in advance for your help, any help is highly appreciated!
Thanks a lot,
Chris
Comment