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

st: Bar color in complex bar graph


From   "Margo Schlanger" <[email protected]>
To   <[email protected]>
Subject   st: Bar color in complex bar graph
Date   Thu, 26 May 2005 20:14:31 -0500

I feel kind of dumb for this one, but I've worked on it and come up only
with a very tedious workaround.  I'm hoping someone knows a better way
for next time . . . 

I'm running a fairly complicated bar chart:  

graph bar (asis) portion1-portion12 if year > 1983,  ylabel(0(.1).2,
grid) ascategory   by(dummy year, [other options])

the variables (portion1-portion12) name 12 variables, each of which is
labeled.  

So here's my question.  It defaults to blue, and I need it to be red. 
(In particular, bcolor(red*.5) blc(red*.8)).  But I can't figure out how
to get the color to work as syntax).  No matter where I put it, I get an
error message.  (I can do this by omitting the ascategory, and then
doing it bar by bar, but then I have to label the bar widths, too, and I
figure there's got to be a better way.)  

Any help is much appreciated.  

Margo



_____________________
Margo Schlanger
Professor of Law
Washington University in St. Louis
One Brookings Drive
Campus Box 1120
St. Louis, MO  63130
(314) 935-8242
[email protected]
http://schlanger.wustl.edu
*
*   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