Statalist The Stata Listserver


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

st: ytitle suboption -valuelabel-: how to label using the text from a variable


From   Michael McCulloch <[email protected]>
To   [email protected]
Subject   st: ytitle suboption -valuelabel-: how to label using the text from a variable
Date   Thu, 19 Oct 2006 07:20:42 -0700

Roger, I'm sorry I wasn't clear in my question.
Now I realize that what I would like to do is label each of the -rcap- whisker bars from the graph below with the text contained in a variable <idstr>. I have seen in -whelp axis_label_options- that one can manually specify text, but don't see how to specify text from a variable.
Michael



In reply to your second query, the -ylabel()- option has a -valuelabel-
suboption, allowing you to type

ylabel(1 2, valuelabel)

which should cause value labels to be printed.

* forest plot comparing results (thanks to Scott Merryman)
         encode ids, gen(Model)
         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 "Adjusted" 2 "Unadjusted",
angle(h)) ///
          || scatter Model estimate if parmseq==1, msize(medlarge)
legend(off)

*
*   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