Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: controlling -sort- within a complex graph


From   Michael McCulloch <[email protected]>
To   [email protected]
Subject   Re: st: RE: controlling -sort- within a complex graph
Date   Thu, 19 Oct 2006 07:48:54 -0700

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/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index