Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: -graph bar- bargap option

From   "Nick Cox" <>
To   <>
Subject   st: RE: RE: -graph bar- bargap option
Date   Tue, 25 May 2010 18:43:16 +0100

I probably misread this. But some loosely similar fooling, e.g. by
creating a variable with mean 0 and inserting it between the other two
variables, is in the same spirit. 


Nick Cox

Yes, there is. 

We can't see your data, but your problem appears to be on all fours with

graph bar (mean) a b c d, over(cat) 

where cat = 1,2,3,4. 

Now -generate- an extra variable. 

gen dummy = cat > 2 

and add an extra option 

... over(dummy)

Now edit the graph to remove all traces of the second option, except the
bigger space. 

(If you are using Stata 10, -update- to Stata 10.1. It's free.) 



I'm using STATA 10 to generate the following bar graph:

 graph bar (mean) pred_f2002 pred_f2005 pred_c2002 pred_c2005,

Is there a way to put a bigger gap between the second and the third
bar (relative to the gap between the 1st and 2nd, and 3rd and 4th

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index