Hello!
I have a tsline graph with different scaled and axes. The left axis has a range (-4,(2) 6) and the right axis has a range (-20(10)30). Both axes pass through the zero, but do not agree on the same level (on the same line). I need that both axes match in the zero, but keeping different scales with the axis.
I am using the following programming to generate the graph:
tsline gdp, lwidth(thick) lcolor(midblue) yti("GDP" " ", ///
height(10) ) || (tsline edu, lwidth(thick) lcolor(orange_red) yaxis(2) ///
yti(" " "Education", height(10) axis(2) )) in 3/86, ///
xmtick(##4) xlabel(#22, labsize(vsmall) angle(vertical)) xtitle("", height(9)) ylab(,nogrid) ///
legend( label(1 "GDP (eje izquierdo)")label(2 "Education (eje derecho)") ///
label(3 "") label(4 "") order(1 3 2 4) size(medium) region(lwidth(none))) ///
graphregion(fcolor(white))
Thanks for your helping
I have a tsline graph with different scaled and axes. The left axis has a range (-4,(2) 6) and the right axis has a range (-20(10)30). Both axes pass through the zero, but do not agree on the same level (on the same line). I need that both axes match in the zero, but keeping different scales with the axis.
I am using the following programming to generate the graph:
tsline gdp, lwidth(thick) lcolor(midblue) yti("GDP" " ", ///
height(10) ) || (tsline edu, lwidth(thick) lcolor(orange_red) yaxis(2) ///
yti(" " "Education", height(10) axis(2) )) in 3/86, ///
xmtick(##4) xlabel(#22, labsize(vsmall) angle(vertical)) xtitle("", height(9)) ylab(,nogrid) ///
legend( label(1 "GDP (eje izquierdo)")label(2 "Education (eje derecho)") ///
label(3 "") label(4 "") order(1 3 2 4) size(medium) region(lwidth(none))) ///
graphregion(fcolor(white))
Thanks for your helping
Comment