Hi all, I'm using xtline to make a graph of predicted rate of change over time and I have 134 lines (id) altogether, whose color need to be changed into black instead of motley fashion. Since the options have exceeded the assumed upper limit of 70, I can't make that with
"xtline ... if ..., t(time) i(id) overlay plot1(lc(black)) ///
plot2(lc(black)) plot3(lc(black)) plot4(lc(black)) plot5(lc(black)) ///
plot6(lc(black)) plot7(lc(black)) plot8(lc(black)) plot9(lc(black)) ///".
I tried "xtline ... if ..., t(time) i(id) overlay forv i =1/134 {
ploti(lc(black))
} ". However, forv is not allowed as an option for xtline.
So, could you please tell me how to realize it with a loop? Many thanks in advance.
"xtline ... if ..., t(time) i(id) overlay plot1(lc(black)) ///
plot2(lc(black)) plot3(lc(black)) plot4(lc(black)) plot5(lc(black)) ///
plot6(lc(black)) plot7(lc(black)) plot8(lc(black)) plot9(lc(black)) ///".
I tried "xtline ... if ..., t(time) i(id) overlay forv i =1/134 {
ploti(lc(black))
} ". However, forv is not allowed as an option for xtline.
So, could you please tell me how to realize it with a loop? Many thanks in advance.
Comment