Now, we can graph read0 and read1 as shown below. 190–215 Speaking Stata: Graphing categorical and compositional data Nicholas J. For those times just add legend(on) or legend(off). What you could do is use another data series to repeat the information and change that series plot order. bysort sorts the data so we can calculate the mean by groups.
Stata line graph by group We start by creating 100 firms which we will track over 11 time periods.