[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: blabel(group) for bar graphs
>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.
Eric G. Wruck
2535 Sherwood Road
Columbus, OH 43209
* For searches and help try: