| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: controlling -sort- within a complex graph
Thank you Nick. -ysc(reverse)- worked very well. And thanks for the pointer
on how to describe a problem!
My problem was that in the two examples of code below, whether I place
-sort(idnum)- in the -twoway- portion of the graph (FIRST EXAMPLE) or the
-scatter- portion (SECOND EXAMPLE), the graph appears sorted in descending
order; suggesting that -sort(idnum)- produced no effect.
Michael
FIRST EXAMPLE
twoway rcap min95 max95 Model if parmseq==1, horizontal msize(huge) ///
xtitle(Hazard Ratio and 95% Confidence Interval, margin(0 0 0 5)) ///
ytitle(Analysis Method) ylabel( 1 "II" 2 "II" 3 "IIIA", angle(h))
mlabel(idstr) sort(idnum)- ///
|| scatter Model estimate if parmseq==1, msize(medlarge) legend(off)
SECOND EXAMPLE
twoway rcap min95 max95 Model if parmseq==1, horizontal msize(huge) ///
xtitle(Hazard Ratio and 95% Confidence Interval, margin(0 0 0 5)) ///
ytitle(Analysis Method) ylabel( 1 "II" 2 "II" 3 "IIIA", angle(h))
mlabel(idstr) ///
|| scatter Model estimate if parmseq==1, msize(medlarge) legend(off)
-sort(idnum)-
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/