Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: RE: RE: xlabel in bar graph


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: Re: RE: RE: xlabel in bar graph
Date   Thu, 5 Feb 2004 14:37:44 -0600

Using the auto dataset, this will label the odd numbered set of bars.
Unfortunately, the even set of bars have a "." label


forv num = 1(1)5 {
 local xlabel "`xlabel' `num' . "
 }

forv num2 = 1(2)5 {
 local xlabel "`xlabel' `num2' `num2' "
 }

di "`xlabel'"
graph bar (mean) headroom gear_ratio, over(rep78, relabel(`xlabel' ))


Scott

----- Original Message ----- 
From: "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <[email protected]>
To: <[email protected]>
Sent: Thursday, February 05, 2004 1:43 PM
Subject: st: RE: RE: xlabel in bar graph


> Then there is no way to show the label for every 5th set of bars other than
> something like
>
> over(gene,  relabel(1 "." 2 "." 3"." 4"." 6"." 7"." 8"." 9"." 11"."...(all
> the way to 49)) ) ?
>
> Even with this, I can't get it to show nothing for non-multiples of 5 For
> example if I replace "." with "" or " ", I still get the original x-variable
> value.
>
> Al Feiveson
>

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