[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: producing graph bar help

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: producing graph bar help
Date   Wed, 9 Jan 2008 16:01:39 -0000

The way you are using it, -catplot- is just a wrapper for -graph bar-. 

(Incidentally, -catplot ..., over()- is not the intended or recommended
use of -catplot-, but it is evidently legal. Whether it will always do
you hope I don't know.) 

So there is just one question here. 

I have never tried overlapping bars before, as my worldview doesn't
include them, but I can't see that adding -bargap(-30)- makes any
difference either. 

StataCorp may be able to help. 

[email protected] 

b. water

svend, nick thanks for your help.

svend - it works. 

nick, thanks for the catplot after trial and error: catplot bar
ind_methd if ind_methd != "emerg", over(year) produces svend's

i am just wondering though why bargap(-30) did not work i.e. neither:

graph bar (count) x if ind_methd != "emerg" , over(ind_methd)over(year)


catplot bar ind_methd if ind_methd != "emerg", over(year) bargap(-30)

produces the graph ala [G] p. 125 where the bars slightly overlap each
other for the said year. would appreciate further advice/comment.

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index