Hi all
I've created a twoway scatterplot and added four vertical lines representing quintile cut-offs. I have two queries I'm hoping someone can help me with: (1) Is there a way to incorporate these reference lines into a legend? and (2) can the quintile lines be 'brought to the front' so they sit on top of the bubbles, currently, they 'sit behind' they bubbles. I'm using Stata 12.1 and here is the code I've written:
twoway (scatter y x [fweight=z], msymbol(O) mcolor(gray) msize(*1.2)) ///
(scatter y x [fweight=z], msymbol(Oh) mlcolor(white) msize(*1.2)), xline(5 9 14 22, lp(dash) lcolor(gs3)) ///
xtitle("XYZ") ytitle("XYZ") xlabel(0(10)70)
Many thanks in advance.
Catherine
I've created a twoway scatterplot and added four vertical lines representing quintile cut-offs. I have two queries I'm hoping someone can help me with: (1) Is there a way to incorporate these reference lines into a legend? and (2) can the quintile lines be 'brought to the front' so they sit on top of the bubbles, currently, they 'sit behind' they bubbles. I'm using Stata 12.1 and here is the code I've written:
twoway (scatter y x [fweight=z], msymbol(O) mcolor(gray) msize(*1.2)) ///
(scatter y x [fweight=z], msymbol(Oh) mlcolor(white) msize(*1.2)), xline(5 9 14 22, lp(dash) lcolor(gs3)) ///
xtitle("XYZ") ytitle("XYZ") xlabel(0(10)70)
Many thanks in advance.
Catherine
Comment