Hi, I want to combine a line plot that shows the percent of health levels >1, with one that shows the percent for male and female sex separately.
I'd like to know if it's possible to show the three lines in the same plot, instead of just combing the two using the graph combine command.
Thanks in advance for your help!
Here is the dataex:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(mathLevel sex) int year 4 1 2018 3 2 2018 4 1 2018 1 2 2018 1 2 2018 2 1 2018 3 2 2018 1 2 2018 1 2 2018 1 1 2018 1 2 2018 3 1 2018 3 2 2018 3 2 2018 3 1 2018 1 2 2018 2 1 2018 3 2 2018 2 1 2018 2 2 2018 2 2 2018 3 1 2018 3 2 2018 3 2 2018 2 2 2018 2 2 2018 2 2 2018 1 1 2018 1 2 2018 3 2 2018 4 2 2018 3 1 2018 4 2 2018 2 2 2018 1 1 2018 3 2 2018 2 2 2018 4 1 2018 1 2 2018 4 1 2018 3 2 2018 4 2 2018 1 1 2018 3 2 2018 1 2 2018 3 2 2018 1 2 2018 2 2 2018 3 2 2018 1 2 2018 1 2 2018 1 2 2018 4 2 2018 4 1 2018 4 2 2018 1 1 2018 4 2 2018 3 1 2018 4 2 2018 4 2 2018 3 2 2018 3 2 2018 2 2 2018 1 1 2018 3 1 2018 1 2 2018 3 1 2018 3 2 2018 1 1 2018 2 1 2018 1 1 2018 . 2 2018 2 2 2018 1 1 2018 2 2 2018 3 1 2018 2 2 2018 3 2 2018 1 2 2018 1 1 2018 2 2 2018 2 2 2018 2 1 2018 2 2 2018 3 1 2018 1 1 2018 4 2 2018 3 2 2018 2 1 2018 3 2 2018 3 2 2018 4 1 2018 1 1 2018 3 1 2018 1 2 2018 1 2 2018 3 2 2018 3 2 2018 3 2 2018 4 2 2018 end label values mathLevel A009 label def A009 1 "Very good", modify label def A009 2 "Good", modify label def A009 3 "Fair", modify label def A009 4 "Poor", modify label values sex X001 label def X001 1 "Male", modify label def X001 2 "Female", modify label values year YEAR label def YEAR 2018 "2018", modify
Comment