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: Question about blabel
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Question about blabel
Date
Thu, 13 Jan 2011 09:38:10 +0000
I think you have two main options.
1. Draw the graph and change the text labels in the Graph Editor.
2. Start again, using -collapse- or -statsby- to get a reduced dataset
and use -twoway bar- etc.
I know that is not your example, but starting bars for Fahrenheit
temperatures at 0 really does not make much scientific or statistical
sense!
Nick
On Thu, Jan 13, 2011 at 7:05 AM, Vitorino, Maria Ana
<[email protected]> wrote:
> 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?
*
* 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/