Bookmark and Share

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]

st: Question about blabel


From   "Vitorino, Maria Ana" <[email protected]>
To   "<[email protected]>" <[email protected]>
Subject   st: Question about blabel
Date   Thu, 13 Jan 2011 07:05:31 +0000

Dear statalist users,

I would like to do a graph just like this one

sysuse citytemp, clear 
#delimit ;
graph bar tempjuly tempjan, over(region) bargap(-30)
 legend( label(1 "July") label(2 "January") )
 ytitle("Degrees Fahrenheit")
 title("Average July and January temperatures")
 subtitle("by regions of the United States")
 note("Source:  U.S. Census Bureau, U.S. Dept. of Commerce")
 blabel(bar, position(inside) format(%9.1f) color(white)) ;
#delimit cr


(http://www.ats.ucla.edu/stat/stata/library/GraphExamples/code/grbar1lab.htm)


BUT, I would like the bar labels to be the number of observations that were used to calculate the means in each of the bars. Is this possible?

Thanks for your help!
Ana
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index