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

st: Re: Reducing number of labels on bar graph


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: Reducing number of labels on bar graph
Date   Wed, 5 Nov 2003 11:25:12 -0800 (PST)

--- David Epstein <[email protected]> wrote:
> I know this should be easy, but I'm stumped. I'm drawing a (oneway)
> bar graph with 46 different categories. When stata puts them all on
> the x-axis, they run into each other, so I'd like, for instance, to
> only display numbers 1, 6, 11, etc. up to 46. How does one do
this??
> 
> Thanks for any help,
> 
> David Epstein

David,

I thought that -relabel- would be the answer to your question but I
am unable to assign blank labels.

. sysuse auto
. graph bar mpg, over(make)
. graph bar mpg, over(make, relabel(1 "1" 2 " " 3 " " 4 " " 5 " " 6
"6" 7 " " 8 " " 9 " " 10 " " 11 "11" 12 " " 13 " " 14 " " 15 " " 16
"16"))

Can someone else show us how to assign a blank label to a bar?

Friedrich Huebler

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
*
*   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