I will like something like this:
100%-|
|
80%- |
|
60%- | n=75
| ______
n=500
40%- | n=250 | |
_____
| _____ | |
| | n=364
20%- | | | | |
| | ______
| | | | |
| | | |
0%-| | | | |
| | | |
------------------------------------------------------------------------------------------
1 2
3 4
--- Ricardo Ovaldia <[email protected]> wrote:
> Not exactly, Nick. I basicaly plooting one variable
> (percetage) over -rep78-, but will like the total
> number of observations that when into calculating
> each
> percentage on top of each bar.
>
> Thank you,
> Ricardo.
>
> --- Nick Cox <[email protected]> wrote:
>
> > There may be an official Stata solution, but what
> > I would recommend is that you try -catplot- from
> > SSC.
> > -catplot- appeared early in the life of Stata 8
> > given
> > the discovery that -graph bar- is not that good at
>
> > counting.
> >
> > . catplot bar rep78 foreign, blabel(bar,
> > position(outside))
> >
> > Is that what you want?
> >
> > Nick
> > [email protected]
> >
> > Ricardo Ovaldia
> >
> > > I will like to place the number of observation
> on
> > top
> > > of each bar. For example, using the auto data:
> > > . sysuse auto, clear
> > > . collapse (mean) foreign (count)
> > > total=foreign,by(rep78)
> > > . graph bar foreign, over( rep78)
> > >
> > > What I want is the number in the variable
> -total-
> > on
> > > top of the corresonding graph. I have not been
> > able
> > > to do this and -blabel()- does not help.
> >
> > *
> > * 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/
> >
>
>
> Ricardo Ovaldia, MS
> Statistician
> Oklahoma City, OK
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
> *
> * 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/
>
Ricardo Ovaldia, MS
Statistician
Oklahoma City, OK
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
*
* 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/