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

RE: st: blabel(group) for bar graphs


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: blabel(group) for bar graphs
Date   Mon, 13 Sep 2004 14:25:50 +0100

Agreed. This does seem odd, perhaps even a bug. 

Nick 
[email protected] 

Finne H�kon
 
> I'm not entirely convinced.
> -graph bar headroom trunk, over(foreign) blabel(group)-
> produces something like this (which I should have put in my 
> first message):
> 
> 		Domestic
> 		________			Domestic
> 		|	  |			________
> 		|	  |			|	  |
>        	|       |	       	|       |
> Domestic	|	  |	Domestic	|	  |
> ________	|	  |	________	|	  |
> |       |	|       |	|       |	|       |
> _______________________________________________
> 	Domestic			Foreign
> 
> whereas
> -graph hbar headroom trunk, over(foreign) blabel(group)-
> produces something like this (except that it is laid out 
> horizontally):
> 
> 		Foreign
> 		________			Foreign
> 		|	  |			________
> 		|	  |			|	  |
>        	|       |	       	|       |
> Foreign	|	  |	Foreign	|	  |
> ________	|	  |	________	|	  |
> |       |	|       |	|       |	|       |
> _______________________________________________
> 	Domestic			Foreign
> 
> Yes, individual bars are labeled (which is my deserved 
> punishment), so this way of labeling stacked bars with their 
> group name will not work (the label will appear twice). But 
> no, the actual labels do not make sense as long as there is 
> more than one y variable to deal with. I would have expected 
> D-D-F-F instead of D-D-D-D with -bar- and F-F-F-F with 
> -hbar-. In the case of one y variable,
> -graph [h]bar headroom, over(foreign) blabel(group)-
> it works out fine.
> 

*
*   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