![]() 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 have to use a very specific color scheme due to corporate identity rules and therefore I have to add the option bstyle (none) because otherwise graph twoway bar automatically reduces the opacity of. If you have many line graphs overlaid and have to use black-and-white, consider different shades of black/gray. Color is one of the easiest ways to distinguish a large number of line graphs. reshape long headline underlying, i(id) j(phase) Hi, I am encountering a problem with graph twoway bar when using the barlook-option bstyle (none) and an added xline-option. Elements for customization include line thickness, line type (solid, dashed, etc.), shade, transparency, and color. 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("") /// Lcolor (red red red red red red red red red red red red red red blue blue blue blue blue blue ) /// Title graph twoway lt Twoway linear prediction plots DescriptionQuick startMenuSyntax OptionsRemarks and examplesAlso see Description twoway lfit calculates the prediction for yvar from a linear regression of yvar on xvar and plots the resulting line. Graph twoway tsline Set1A Set1B Set1C Set1* Set2A Set2B Set2C Set2*, /// line sm5ex3rec1 sm5ex3rec2 sm5ex3rec3 sm5ex3all yearmonth, xtitle ('Base. What do I insert in the following snippet of code. I'm fine with the default gray scale settings for all other lines, but for one line, I'd like to show it in color. axis choice options associate the plot with a particular y or x axis on the graph see G-3 axis choice options. I'm trying to change the color of just one line in my figure, featuring 4 lines. G-3 connect options discusses options for one y versus one x, see connect options inG-2 graph twoway scatter when plotting multiple ys against one x. You might look into "pstyles".Thanks Doug. including pattern, width, and color seeG-3 connect options. 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 |