LGRAPH: Stata module to draw line graphs with optional error bars
Timothy Shin Heng Mak · RePEc: Research Papers in Economics · 2007
lgraph is a tool for drawing line graphs with optional error bars optionally stratified by one or two variables. lgraph collapses yvar by xvar and optionally groupvar1 and groupvar2. It then plots a twoway_connected graph of yvar against xvar, stratified by groupvar1 and groupvar2 with optional error bars. The advantage of using lgraph is that the data is automatically preserved. Moreover, lgraph automatically takes care of the coloring of the lines and the error bars, and produces meaningful legends. It is most useful for graphical exploration of longitudinal and/or multilevel data.