Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Stefan Haigner <stefan.haigner@uibk.ac.at> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: graph bar |
Date | Thu, 08 Apr 2010 20:13:41 +0200 |
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 crI 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/