Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Hbar bar color problem


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Hbar bar color problem
Date   Sat, 15 Jan 2005 17:15:22 -0000

-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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index