Dear All,
I want to present how the indicators evolved over time. The first group is the equity ratio: the minimum, the average and the maximum. The second group is the disposible income ratio: the minimum, the average and the maximum. The y range for the first group is from 5 to 25%, the y range for the second group is -2 to 20%. The time span for the first: 2005q4-2021q4, the second: 2014q4-2021q4. I want to present the two graphs in one graph. It is important to me that I have as many quarters as possible and only one legend on the middle on the final graph. I used the codes:
when I produce the graph 1 and 2 everything looks good. When I combine the graphs the y-axis is illegible. I want to have only one legend and as many quarters as possible. I hid the legend field of one graph when editing. However one of the graphs become bigger and I cannot set the legend field in the middle.
Please help me
I want to present how the indicators evolved over time. The first group is the equity ratio: the minimum, the average and the maximum. The second group is the disposible income ratio: the minimum, the average and the maximum. The y range for the first group is from 5 to 25%, the y range for the second group is -2 to 20%. The time span for the first: 2005q4-2021q4, the second: 2014q4-2021q4. I want to present the two graphs in one graph. It is important to me that I have as many quarters as possible and only one legend on the middle on the final graph. I used the codes:
Code:
graph twoway line x1 x2 x3 time, sort /// ylabel(5(2)25, angle(0)) xlabel(183(4)247, angle(90)) /// legend(label(1 "Minimum") label(2 "Average") label(3 "Maximum")) /// ysca(titlegap(4)) xsca(titlegap(4)) /// name(graph1) graph twoway line z1 z2 z3 time, sort /// ylabel(0(2)20, angle(0) xlabel(216(4)247, angle(90)) /// legend(label(1 "Minimum") label(2 "Average") label(3 "Maximum")) /// xsca(titlegap(4)) ysca(titlegap(4)) /// name(graph2) graph combine graph1 graph2
Please help me

Comment