Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: bar colours in -graph hbar, over()-


From   Svend Juul <[email protected]>
To   <[email protected]>
Subject   Re: st: bar colours in -graph hbar, over()-
Date   Tue, 16 Sep 2008 11:03:05 +0200

Stephen Jenkins wrote:

I am using the command

	graph hbar (asis) poverty , over(period) over(htype)

where period has 2 categories, and htype has 10 categories. The
command produces a graph exactly in the format I require, except that
I would like the bars for the first period category to be blue, and
the bars for the second period category to be red. How can I do this?

...

======================================================================

Stephen,

Try this:

graph hbar (asis) poverty , over(period) over(htype) asyvars ///
   bar(1, color(blue)) bar(2, color(red))

hth
Svend
__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone:  +45 8942 6090
Home:   +45 8693 7796
Email:  [email protected]
__________________________________________ 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index