I'm making up a graph and would like some added text labels to be added that are vertically oriented and left justified (so they look like they're all "standing up" with even bottoms).
I'm not sure why this isn't working:
Code:
clear graph drop _all set obs 1 local location_u1 -1 local location_1 -0.75 local location_u2 -0.5 local location_2 -0.25 local location_u3 0 local location_3 0.25 local location_u4 0.5 local location_4 0.75 local location_u5 1 gen location_u1 = `location_u1' gen location_1 = `location_1' gen location_u2 = `location_u2' gen location_2 = `location_2' gen location_u3 = `location_u3' gen location_3 = `location_3' gen location_u4 = `location_u4' gen location_4 = `location_4' gen location_u5 = `location_u5' twoway scatter location_u1 location_u1 , msym(i) /// || scatter location_u5 location_u5 , msym(i) /// text(`location_u3' `location_1' "p <= 0.01", orientation(vertical) justification(left)) /// text(`location_u3' `location_2' "0.01 <= p < 0.05", orientation(vertical) justification(left)) /// text(`location_u3' `location_3' "0.05 <= p < 0.1", orientation(vertical) justification(left)) /// text(`location_u3' `location_4' "p > 0.1", orientation(vertical) justification(left)) /// legend(off) graphregion(col(white)) /// xlabel(`location_u1' `location_u5', notick nogrid labcolor(white)) xscale(alt lcolor(white)) /// ylabel(`location_u1' `location_u5', notick nogrid labcolor(white)) xscale(alt lcolor(white))
Cheers,
Simon.
0 Response to Vertical and left justified added text to graph
Post a Comment