2/26/2024 0 Comments Stata xline color0967388 Kurtosis 2.395841Edit: after quite a while, did I notice Friedrich' suggestion on a similar verge, i.e, to - reshape long - as well. reshape long headline underlying, i(id) j(phase) And for the pair of lines for each country, I want red for headline inflation, and blue for underlying, so that they can be distinguished. I already transformed the inflation rates for each country such that for country A, value 1 correspond 0% inflation rate, for country B value 2 correspond to 0% inflation rate, so that the lines for country A will fluctuate around 1, and those for country B around 2, country C around 3, etc. I want to plot on the same graph both types of inflation for a number of countries. My question is, given the limit on number of arguments, is there a way to assign one color to lines of Set1 and another color to lines of Set2.įor illustration, the Set1* lines are headline inflation, and Set2* lines are underlying inflation. Xsize(10) ysize(20) xlabel(#10) ylabel(1(4)14, labsize() tlength(zero) glwidth(vvvthin) glstyle(dot) glcolor(black)) ytick(none) ymlabel(none) Subtitle(,size(small)) tlabel(,format(%tCHH) labsize(vsmall)) legend(off) ytitle("") xtitle("") title("") /// We use Stata graph scheme s2mono, which produces plots in grayscale, because publications. We will show a number of examples from a data file which contains a measurement of alcohol use, alcuse, taken at ages 14, 15 and 16 for 82 children (identified by the variable id ). Lcolor (red red red red red red red red red red red red red red blue blue blue blue blue blue ) /// The xtline command allows you to generate linear plots for panel data. Graph twoway tsline Set1A Set1B Set1C Set1* Set2A Set2B Set2C Set2*, /// You might look into "pstyles".Thanks Doug. It would help to have the code you are starting from, to better understand the organization of the data you are starting from, and the graph you hope to end up with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |