Hello I am trying to do a graph with two different yaxis. The problem is that the difference between labels in the yaxis is different for the two axis even though the two axis are specified to have 10 unit spaces across labels.
This is the code I use:
twoway bar fac_summ group, barwidth(0.8) fintensity(20) lcolor(navy) yscale(alt) || scatter chmtr0706 group, yaxis(2) lpattern(dash) connect(direct) msymbol(circle) mcolor(navy) lcolor(navy) yscale(alt axis(2)) ytitle("Fraction of personal income taxpayers (in %)", height(4) orientation(rvertical)) ylabel(0(10)50, nogrid) title({bf:2006 Reform: 2007-2006 difference}, size(medium) color(black)) xlabel(1 "0-4" 2 "4-14" 3 "14-26" 4 "26-46" 5 ">46") xtitle("Net taxable income in 2006 (in thousands of €)", height(4.5)) ytitle("Mechanical change in marginal net of tax rate" "on financial income (in %)", height(7) axis(2)) yline(0, axis(2) lcolor(cranberry) lwidth(thin)) yline(-10 -20 -30 -40 -50, axis(2) lcolor(black) lpattern(dot) lwidth(thin)) legend(order(2 "Mechanical change in marginal net of tax rate" 1 "Fraction of personal income taxpayers") rows(2)) graphregion(color(white))
I would like to have 0 in the left axis at the same level than 50 in the right axis. Can anyone help me with this?
Thank you very much.
Related Posts with twoway graphs with different yaxis
Averaging with a condition while generating a new variableHi there! I have household-level data with unique household_id. For each household, I have data for…
Dichotomous Independent variableHi I am working on the following data set and in order to determine my model, I have TOTALINVESTMEN…
S.E. in xtreg and aregDear friends, I'm estimating a fixed effects model with an unbalanced panel data using both areg an…
Stratified Sampling into Equal Groups using Proportional Allocation with Odd and Even Observations in StratumHello, I have a dataset with 60 clusters that can be divided into 14 stratum. I would like to random…
teffects nnmatch with no exact matchesHello everyone, I am trying to perform a nearest-neighbor matching in Stata by using the teffects c…
Subscribe to:
Post Comments (Atom)
0 Response to twoway graphs with different yaxis
Post a Comment