How can I plot the following series in one plot, without specifying the grouping variable (i.e., province) one by one?
| Province | year | n |
| A | 2010 | 1 |
| A | 2011 | 2 |
| A | 2012 | 3 |
| B | 2010 | 4 |
| B | 2011 | 5 |
| B | 2012 | 6 |
Code:
graph twoway line n year if province== "A" || line n year if province== "B", legend(label(1 "A ") label(2 "B"))

Comment