Dear Statalisters,
Here are my codes for two graphs below. What I would like to know is whether it is possible to have different values for the two loops while labelling the y-axis. For example, for the existing values in the codes below (marked red) , is it possible to have 30(2)42 for the first loop and 30(1)36 for the second?
Similarly is it possible to have different texts (marked red) for the two loops?
Any comments are much appreciated.
Regards,
Here are my codes for two graphs below. What I would like to know is whether it is possible to have different values for the two loops while labelling the y-axis. For example, for the existing values in the codes below (marked red) , is it possible to have 30(2)42 for the first loop and 30(1)36 for the second?
Similarly is it possible to have different texts (marked red) for the two loops?
Code:
gr drop _all loc i = 1 foreach var of varlist mvpa vomax { loc t: var lab `var' lgraph `var' visit rand, /// legend(off) /// title("Adjusted `t'",size(large)col(black)) /// lop(1 lpatt(dash)lcol(red)msym(S)mcol(red)lwidth(medthick); /// 0 lpatt(solid)lcol(orange)msym(S)mcol(orange)lwidth(medthick)) /// ylab(30(2)42,ang(hor)nogrid) ytitle("Adjusted Mean `t'" " ",col(black)) /// xtitle("")xlab(-.1 " " 0 "Baseline" 6 "6-month" 12 "12-month" 12.2 " ",notick) /// graphregion(col(white)) /// text(33 11.5 "TAU" 40 11.5 "Exercise",size(large)col(red)) gr copy x`i',replace loc ++i } gr combine x1 x2,graphregion(col(white))ysize(3)xsize(5)
Regards,
Comment