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

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


From   "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Re: RE: RE: xlabel in bar graph
Date   Thu, 5 Feb 2004 15:12:51 -0600

Scott - 
Well, at least this cuts down the line length even though it requires a
series of commands...anyway thanks for spending time on this. When I finally
broke down and got Stata 8 , I justified it on the grounds that it was for
analysis only and that I wouldn't spend hours trying to make pretty graphs -
so much for that!

Al F.

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Scott Merryman
Sent: Thursday, February 05, 2004 2:38 PM
To: [email protected]
Subject: st: Re: RE: RE: xlabel in bar graph


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