Hi, I am working on a scatter plot on expenditure among insured uninsured and my commands look this:
graph twoway (scatter oopinsuredhh state_new if direction==0, mcolor(red) msymbol(circle) msize(small)) (scatter oopinsuredhh state_new if direction==1, mcolor(green) msymbol(s) msize(small)) (scatter oopuninsuredhh state_new if direction==0, mcolor(red) msymbol(circle) msize(small)) (scatter oopuninsuredhh state_new if direction==1, mcolor(green) msymbol(s) msize(small)) (pcarrow oopuninsuredhh state_new oopinsuredhh state_new if direction==0, lcolor(red) mcolor(red) mfcolor(green) mlcolor(red)) (pcarrow oopuninsuredhh state_new oopinsuredhh state_new if direction==1, lcolor(green) mfcolor(green) mlcolor(green) mcolor(green))
This gives me the desired result but there are two problems that I am facing
1. The y and x axis bot start from 0 , I just want a common 0 with some space between state name on horizontal axis and y axis (I don't know how to insert outergap in the above command.
2. How should I construct states in descending order in the graph based on uninsured value
Thanks in advance!
Comment