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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: graph bar


From   drreg@earthlink.net
To   statalist@hsphsun2.harvard.edu
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 <stefan.haigner@uibk.ac.at>
>Sent: Apr 8, 2010 2:13 PM
>To: statalist@hsphsun2.harvard.edu
>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/


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