Hi, I would like to draw multiple lines in one graph like the following using the data below. I have 9 y variables, so even if I use different line patterns (using lpattern option), Stata graph output does not distinguish them very well, especially in a black and white printout. This problem persists even if I use different thickness option for each line. Is there any way I can put a label (y1 - y9) in each line inside the plotspace instead of legend outside? Thanks in advance.
twoway (line y1 x) (line y2 x) (line y2 x) (line y3 x) (line y4 x) (line y5 x) (line y6 x) (line y7 x) (line y8 x) (line y9 x)
twoway (line y1 x) (line y2 x) (line y2 x) (line y3 x) (line y4 x) (line y5 x) (line y6 x) (line y7 x) (line y8 x) (line y9 x)
x | y1 | y2 | y3 | y4 | y5 | y6 | y7 | y8 | y9 |
-1 | 0.50 | 0.26 | 0.39 | 0.30 | 0.38 | 0.70 | 0.01 | 0.00 | 0.23 |
-0.8 | 0.47 | 0.26 | 0.40 | 0.29 | 0.39 | 0.66 | 0.02 | 0.00 | 0.22 |
-0.6 | 0.45 | 0.26 | 0.41 | 0.28 | 0.40 | 0.63 | 0.02 | 0.00 | 0.21 |
-0.4 | 0.42 | 0.26 | 0.42 | 0.26 | 0.41 | 0.60 | 0.03 | 0.00 | 0.19 |
-0.2 | 0.40 | 0.26 | 0.43 | 0.25 | 0.42 | 0.57 | 0.03 | 0.00 | 0.18 |
0 | 0.37 | 0.26 | 0.44 | 0.23 | 0.42 | 0.54 | 0.04 | 0.00 | 0.17 |
0.2 | 0.35 | 0.26 | 0.44 | 0.22 | 0.42 | 0.52 | 0.05 | 0.00 | 0.16 |
0.4 | 0.33 | 0.26 | 0.45 | 0.20 | 0.43 | 0.49 | 0.06 | 0.00 | 0.15 |
0.6 | 0.30 | 0.26 | 0.46 | 0.19 | 0.43 | 0.47 | 0.08 | 0.00 | 0.14 |
0.8 | 0.28 | 0.26 | 0.47 | 0.17 | 0.42 | 0.44 | 0.10 | 0.01 | 0.13 |
1 | 0.26 | 0.26 | 0.48 | 0.16 | 0.42 | 0.42 | 0.12 | 0.01 | 0.13 |
Comment