H�kon 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?
>
I took a look at this too. First, note that when I use the on-line documentation, I learn about the blabel(group) option that:
group...label is first over() group
Now, I wasn't sure what "first over() group" meant but I thought I'd try something else, namely:
graph bar headroom trunk, over(foreign, descending) blabel(group)
This is your first graph but with the descending option included in over(). This then changed the labels from Domestic to Foreign, the thing you were pointing out that happened when you switched from bar to hbar. I'm guessing that bar & hbar may use a different internal sequence so that what is first in the one graph may not come first in the other.
Best wishes,
Eric
--
===================================================
Eric G. Wruck
2535 Sherwood Road
Columbus, OH 43209
home: 614.237.6511
office: 614.231.5034
eFax: 614.573.6639
eMail: [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/