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: graph bar
From
[email protected]
To
[email protected]
Subject
Re: st: graph bar
Date
Thu, 8 Apr 2010 14:33:49 -0400 (EDT)
does blabel(total) help?
reg
-----Original Message-----
>From: Stefan Haigner <[email protected]>
>Sent: Apr 8, 2010 2:13 PM
>To: [email protected]
>Subject: st: graph bar
>
>Hi one and all!
>
>I have a question concerning labelling option in combination with graph bar:
>
>Here is my "problem": I want to draw a bar chart, whereby the height of
>the bar shows the fraction (i.e. percentage) within each category. In
>addition I want to increase the information of my chart by adding the
>number of observations on top of each bar chart. Is this possible?
>
>And here is what I have so far:
>
>#delimit ;
>graph bar pd, over(cooperator, label(angle(forty_five) labsize(vsmall)))
>over(category, label(labsize(vsmall)))
> title("", span size(vsmall))
> subtitle("", span size(vsmall))
> ylabel(, labsize(vsmall))
> ytitle(relative frequency, size(vsmall))
> blabel(bar, position(outside) format(%9.2f) color(black) size(vsmall))
> note("", span size(vsmall)) ;
>#delimit cr
>
>I think that I have to change something with blabel, but I don't find
>the appropriate option.
>
>Thank you very much in advance for your time!
>Best, Stefan
>
>
>--
>Stefan D. Haigner
>Faculty of Economics and Statistics
>University of Innsbruck
>Universitaetsstrasse 15
>A-6020 Innsbruck
>
>www.haigner.at
>www.gaw-mbh.at
>*
>* 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/