Thanks for the suggestion, Phil; but no; I actually want the group name and not the variable name (because I later want to remove the label on the category axis due to space considerations). The problem is that the group label is incorrect once there is more than one yvar.
-- H�kon
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Philip Ryan
Sent: 13. september 2004 07:38
To: [email protected]
Subject: Re: st: blabel(group) for bar graphs
By specifying -blabel(group)- you have asked Stata to label the bars with
the value labels of the first (and in your case, only) over() variable,
that is, foreign.
Specifying -blabel(name)- will get you closer to what I think you want.
see help graph -- bar --blabel_options
Phil
At 01:21 AM 13/09/2004 +0200, you wrote:
>Dear Statlisters,
>the admittedly nonsensical example below,
>
>sysuse auto, clear
>graph bar headroom trunk, over(foreign) blabel(group)
>
>will produce bar labels inconsistent with labels on the category axis.
>What have I done to make all cars domestic?
>
>One should also think it possible to reproduce this behavior with
>
>graph hbar headroom trunk, over(foreign) blabel(group)
>
>and yet another surprise -- have I suddenly moved abroad?
>
>-- H�kon
>[email protected]
>
>*
>* 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/
Philip Ryan
Associate Professor,
Department of Public Health
Associate Dean (Information Technology)
Faculty of Health Sciences
University of Adelaide 5005
South Australia
tel 61 8 8303 3570
fax 61 8 8223 4075
http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
*
* 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/