Dear Community,
I want to show on the graph how two indicators evolved over time. The problem is the range of the first is from 50 to 250, whereas the range of the second indicator is from 0.15 to 0.17. I used the command:
However the output is not what I want. The axis with the values for x2 is illegible. The graph for x2 is flat. I would like to have different scale on the right horizontal axis so that the graph would show the fluctuations of x2
I want to show on the graph how two indicators evolved over time. The problem is the range of the first is from 50 to 250, whereas the range of the second indicator is from 0.15 to 0.17. I used the command:
Code:
twoway connected x1 x2 year,sort /// yaxis(1 2) ytitle("x1") /// ylabel(50(25)250, nogrid angle(horizontal) xscale(titlegap(3)) /// ylabel(, axis(2) angle(horizontal)) /// ylabel(0 "0" 0.05 "0.05" 0.1 "0.1" 0.15 "0.15" 0.2 "0.20", axis(2)) /// scale(0(0.5)0.20),axis(2)) yscale(titlegap(3) axis(2)) yscale(titlegap(3) axis(1))
Comment