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: _if_ qualifier for hbar formatting
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: _if_ qualifier for hbar formatting
Date
Mon, 26 Aug 2013 09:52:12 +0100
separate weight, by(_n >= 4)
graph hbar (asis) price weight?, over(make) nofill legend(off) bar(3,
bfcolor(none))
For a fuller discussion, see
Cox, N.J. 2011. Stata tip 102: Highlighting specific bars.
Stata Journal 11(3): 474-477
Nick
[email protected]
On 26 August 2013 07:57, Mike <[email protected]> wrote:
> I'm using version 8
> Consider the following...
>
> sysuse auto, clear
> keep if _n < 6
> keep make price weight
> graph hbar (mean) price weight, over(make) bar(2, bfcolor(none))
>
> Here the mean of weight is represented as hollow bars.
> However, I'd like to have the mean of weight represented as hollow bars
> for Buicks only.
> Can I use an _if_ qualifer to format the hbars?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/