-hbar- is a user-written program last
revised by its author in 1999, a long
time ago in Stata terms.
-graph hbar- is an official Stata command,
and is much better for almost all purposes,
given that you have Stata 8.
However, -hbar- used the standard -graph- (<= 7)
-pen()- option to control colours. This is
explained in the help for -hbar-. Hence this is entirely
a matter of using a call to -graph7-. I
think you will have to experiment to get
the colours you want, or else find an old
Stata manual, as they are not listed at
-help gr7color-.
Nick
[email protected]
Skip Payne
> I am using hbar to create a graph, but the colors come out
> yellow and red, I want green and red. I have attached a copy
> of the code for version 7 that was given to me (I use version 8).
>
> Copy of Version 7 code:
>
> #delimit ;
>
> hbar green red, shad(44) leg(cat) xline(0) bord
> rleg(dz)xlab(-8 0 6) xtick(-6 -4 -2 2 4) barfrac(.9) rlpos(31750)
>
> title(" decrease z-score increase ")
>
> t1("Weekly Disease Data for the Seneca County General Health
> District") t2("As of: `ETAD'");
>
> #delimit cr
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/