Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: RE: -graph bar- bargap option
From
Sue <[email protected]>
To
[email protected]
Subject
Re: st: RE: RE: -graph bar- bargap option
Date
Tue, 25 May 2010 13:52:19 -0400
Dear Nick,
Thanks for your input. The variable "ca_cat" actually goes from 1 to
3, for low, medium and high. Is there yet another way to do this
because when I use the "dummy solution", it obviously places a gap of
the size of a bar, and I'd like that bar to be narrower (so that the 4
bars are still closer to each other than between low, medium and high
categories, if that makes sense.).
Thanks,
Sue
On Tue, May 25, 2010 at 1:43 PM, Nick Cox <[email protected]> wrote:
> 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
> [email protected]
>
> 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.)
>
> Nick
> [email protected]
>
> Sue
>
> I'm using STATA 10 to generate the following bar graph:
>
> graph bar (mean) pred_f2002 pred_f2005 pred_c2002 pred_c2005,
> over(ca_cat)
>
> 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
> bar)?
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/