Dear Statalisters,
I have graphed a coefplot with 4 subgraphs, each containing a different model. I would like to specify the y-axis range/scale for each graph but stata doesn't let me! Ideally I want each axis to be centered around zero!
Here is my code:
coefplot (A), bylabel(Years of Education) || (B) , bylabel(Primary Completion) || (C) , bylabel(Secondary Completion) || (D) , bylabel(Education Participation) ||, keep(b4pol26 b4pol25 b4pol24 b4pol23 b4pol22 b4pol21 b4pol20 b4pol19 b4pol18 b4pol17 b4pol16 b4pol15 b4pol14 b4pol13 b4pol12 b4pol11 b4pol10 b4pol9 b4pol8 b4pol7 b4pol6 b4pol5 b4pol4 b4pol3 b4pol2) coeflabels(b4pol27="27" b4pol26="26" b4pol25="25" b4pol24="24" b4pol23="23" b4pol22="22" b4pol21="21" b4pol20="20" b4pol19="19" b4pol18="18" b4pol17="17" b4pol16="16" b4pol15="15" b4pol14="14" b4pol13="13" b4pol12="12" b4pol11="11" b4pol10="10" b4pol9="9" b4pol8="8" b4pol7="7" b4pol6="6" b4pol5="5" b4pol4="4" b4pol3="3" b4pol2="2") xlabel(,alternate labsize(small) tlength(2)) byopts(legend(off) title(Coefficients of Interaction: Age in 1989*Female, size(medium)) note("*Cohort aged 27 in 1989 is omitted") yrescale xrescale ) vertical yline(0,lcolor(black)) p1(ylabel(-2(1) 2) ysc(r(-2 2))) p2(ylabel(-.2(.1) .2) ysc(r(-.2 .2))) p3(ylabel(-.2(.1).1) ysc(r(-.2 .1))) p4(ylabel(-.2(.1).3) ysc(r(-.2 .3))) norecycle
I also tried including the specific y-axis scales as modelopts within each of the model parentheses, but this also didn't work - Stata simply applies the last specified range to all plots. Even though I use the option norecycle!
I would appreciate any help, I have been trying everything I can possibly think of.
Thank you very much in advance!
Kind rgds,
Valentina
Related Posts with Coefplot subgraphs - how to tailor the axis scale of each subgraph?
Mixed effects model on eyes observationsHi statalist team! I am glad that I participate here! I would like to ask for some help on a "beggin…
change the color of bars -BOXPLOTHi to everybody, I have done for the first time "Box plot by group with data point" By default, Sta…
Converting annual data to semiannualHi everyone, i have to convert a set of annual observations about debt and deficit gdp ratios into s…
Equivalent for noisily option in fuzzy package?Hello Statalist, does anyone know how to get Stata to print all calculations occuring due to comman…
heteroskedasticity in logistic regression modelHi, I have cross sectional data and am using logistic regression. My question is how do I check my …
Subscribe to:
Post Comments (Atom)
0 Response to Coefplot subgraphs - how to tailor the axis scale of each subgraph?
Post a Comment