Hello Everyone!

I am using stata 16 and my data us the demographic health survey women's module. I created a dummy variable domvio = 1 if the respondent has faced any form of domestic violence and = 0 otherwise. I wanted to plot it in a line graph against the respondent's partner's education level (range 1 to 20), basically plot the results from the following command as a twoway line graph.

Code:
tab domvio part_educ_lvl
I get the following output:
highest year of education
domvio 0 1 2 3 4 5 6 7 8 9 10 11 20 Total
0 4 34 93 81 54 160 3 4 0 0 0 0 0 433
1 355 3,196 6,225 6,831 5,887 11,472 133 224 38 8 4 3 3 34,379
Total 359 3,230 6,318 6,912 5,941 11,632 136 228 38 8 4 3 3 34,812
I can successfully get a bar graph for this but it would seem visually better if I had a line graph showing me the percentage of women who reported facing domestic violence by relative's education.

For the bar graph I used the following code

Code:
egen mean = mean(100 * domvio), by(part_educ_lvl)
egen tag = tag(part_educ_lvl)
graph bar (asis) mean if tag, over(part_educ_lvl) blabel(total, format(%2.1f)) yla(0(10)60)
Array
I am just not certain how to translate this into a line graph.


Thanks a lot.
Lori