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

st: RE: Re: xlabel in bar graph


From   "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <alan.h.feiveson@nasa.gov>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Re: xlabel in bar graph
Date   Fri, 6 Feb 2004 10:27:59 -0600

Friedrich - 

. twoway bar xm id if id != id[_n-1] , xlabel(1(5)46)


This approach looks more promising - although it will still take some work
to plot two bars side by side for each value of the x-variable. I guess this
can be done by defining a "new" x to be the "old" x plus and minus some
small increment and reducing the widths of the bars. Thanks for the
suggestion.

Al Feiveson






-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Friedrich
Huebler
Sent: Thursday, February 05, 2004 4:15 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Re: xlabel in bar graph


Al,

Vince Wiggins suggested -twoway bar- in response to a similar
question:

http://www.stata.com/statalist/archive/2003-11/msg00193.html

Friedrich Huebler

--- "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)"
<alan.h.feiveson@nasa.gov> wrote:
> 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

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index