0967388 Kurtosis 2.395841Edit: after quite a while, did I notice Friedrich' suggestion on a similar verge, i.e, to - reshape long - as well. I want to put a vertical line at 2016h2 but nothing Ive tried has worked. Here is an example: graph twoway (scatter growth2010 growth2000) (function y x, range( growth2000)) This will draw a line at a 45 degree angle, i.e. 1 Im doing a connected twoway plot with x-axis as dates formatted as th with values 2011h1 to 2017h2. Other lines may be drawn by overlaying the graph with a function. 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 ). xline(3) Again, several values may be enclosed within the parentheses, producing several lines. reshape long headline underlying, i(id) j(phase) The xtline command allows you to generate linear plots for panel data. personality color quiz tik tok Speaking Stata: Paired. 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. Remarks and examples graph twoway stata mean graph twoway. One example of a heat plot is a two-dimensional histogram in which the frequencies of combinations of binned Y and X are displayed as rectangular (or hexagonal) fields using a color gradient. 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. Ben Jann Programming Language Stata Abstract heatplot creates heat plots from variables or matrices. 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("") /// Lcolor (red red red red red red red red red red red red red red blue blue blue blue blue blue ) /// Graph twoway tsline Set1A Set1B Set1C Set1* Set2A Set2B Set2C Set2*, /// You might look into "pstyles".Thanks Doug. Options yline(linearg), xline(linearg), and tline(time linearg) specify the y, x, and t (time) values where lines should be added. 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 |