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: stack-graph-bar problem
From 
 
Jörg Eulenberger <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: RE: stack-graph-bar problem 
Date 
 
Mon, 29 Nov 2010 19:26:55 +0100 
Thanks a lot Nick,
Jörg
Am 29.11.2010 12:48, schrieb Nick Cox:
In broad terms the -graph bar- command to do this must have two -over()- options or one -over()- option and one -by()- option. Therefore, you may need to -reshape- or otherwise reshape your data to allow this.
Nick
[email protected]
Jörg Eulenberger
i have an  stack-graph-bar problem.
I want to draw an graph bar like this:
sysuse auto, clear
tab  rep78, gen(rep78)
recode rep78 (1=3) (2=4) (3=1) (4=2) (5=5), gen(rep79)
tab  rep79, gen(rep79)
graph bar     rep781 rep782 rep783 rep784 rep785, over( foreign) stack
asyvars percent blabel(bar, format(%4.0f)size(medsmall) position(inside))
Now i want zu place the bars from rep79 beside the bars from rep78.  The
pupose is an graph with 4 bars, two (rep78 rep79) over Domestic and two
over Foreign (rep78 rep 79).
*
*   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/