Hi all,
Would anyone know whether there is a similar over () function such as with the graph bar (asis) command that can be used with the twoway stacked bar command?
I have a created a stacked bar graph over weeks in the x axis and would like to also include months in the x axis as well.
graph twoway (bar AGE_N_0_4 week,color(black) lcolor(black)lwidth(medthick)) (rbar AGE_N_0_4 A2 axis ,color(gs7*0.9) lcolor(black)lwidth(medthick)) (rbar A2 A3 week,color(gs7*0.4) lcolor(black)lwidth(medthick)) (rbar A3 A4 week,color(dimgray) lcolor(black)lwidth(medthick))(rbar A4 A5 week,color(white) lcolor(black)lwidth(medthick)) (line THREE_WEEK_AVERAGE_COUNT week, lpattern(solid)color (red) recast(connected) msymbol(O))(line TWO_SD_THREE_WEEK_COUNT week, lpattern(dash)color (blue) recast(connected) msymbol(x))(line HISTORICAL_AGERAVE week, lpattern(dash)color (gray) recast(connected) msymbol(s)),xlabel(1(2)62,valuelabel angle(90) labsize(*1.0)tick)xtick(1(1)62) ytitle("X", size(small) height(4)) ylabel(,nogrid)graphregion(color(white)) ylabel(0(1)10, labsize(*1.0)angle(0))
Related Posts with Twoway graph X axis
How to write a loop code for this following case as detailed in the post?I want to rename variables: rename f120_0_s1 f120_s1_0_ rename f120_1_s1 f120_s1_1_ rename f120_2_s…
Dummy for recording changeHi, I would like to create a dummy which would record if any executive changes between two years and…
Var storage type is "byte", but presented as text in data editorHow do I see the assigned value to each text? …
Linear Regression: Interpreting Continuous Interaction?Hi! I'm a beginner when it comes to both statistics and STATA. This question might be more of a sta…
Constant interpretation - multiple regression with log dependent variableDear all, Could anyone please explain me how to interpret the constant in a multiple regression whe…
Subscribe to:
Post Comments (Atom)
0 Response to Twoway graph X axis
Post a Comment