Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Graph label question


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: Graph label question
Date   Thu, 14 Jan 2010 16:35:45 +0100

I tend to use a trick with levelsof for doing things like this:

. levelsof order if !inlist(order,3,6,9), local(K)

. eclplot rate lci uci order in 1/12 ///
  , horiz xline(.018) ylab(`K', valuelabel) ///
  estopts(msize(vlarge)) ciopts(msize(vlarge)) ///
  scheme(bw) xtit(Annual HAQ progression rate) ytit("")


Am Donnerstag, den 14.01.2010, 09:25 -0600 schrieb Fred Wolfe:
> I am making a graph using -eclplot-.
> 
> eclplot   rate lci uci order in 1/12,horiz xline(.018) ylab(1 [1] 12)
> estopts(msize(vlarge)) ciopts(msize(vlarge)) scheme(bw) xtit(Annual
> HAQ progression rate) ytit("")
> 
> The 3rd variable, order contains the following value labels:
> 
> 
>      +------------------+
>      |            order |
>      |------------------|
>   1. | Infliximab - ALL |
>   2. | Infliximab + MTX |
>   3. |                  |
>   4. | Etanercept - All |
>   5. | Etanercept + MTX |
>      |------------------|
>   6. |                  |
>   7. |  Adalimumab- All |
>   8. | Adalimumab + MTX |
>   9. |                  |
>  10. |      No biologic |
>      |------------------|
>  11. |      DMARDs only |
>  12. |                  |
> 
> When the graph runs, labels 3, 6, 9 and 12 are filled in with those
> number. The code that makes the label is this:
> 
> lab define order 1 "Infliximab - ALL" 2 "Infliximab + MTX" 3 " " 4
> "Etanercept - All" 5 "Etanercept + MTX" 6 " " 7 "Adalimumab- All" 8
> "Adalimumab + MTX" 9 " " 10 "No biologic" 11 "DMARDs only" 12 " " 13 "
> "  14 "Infliximab - ALL" 15 "Infliximab + MTX" 16 " " 17 "Etanercept -
> All" 18 "Etanercept + MTX" 19 " " 20 "Adalimumab- All" 21 "Adalimumab
> + MTX" 22 " " 23 "No biologic" 24 "DMARDs only" 25 " ", modify
> lab values order order
> 
> Question: How do I get the empty label (3,6,9, etc) to be blank
> instead of showing the number. I have not been able to find the answer
> to this in my searches.
> 
> Thanks,
> 
> --
> Fred Wolfe
> National Data Bank for Rheumatic Diseases
> Wichita, Kansas
> NDB Office  +1 316 263 2125 Ext 0
> Research Office +1 316 686 9195
> [email protected]
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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