Statalist The Stata Listserver


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

AW: st: twoway bar: Can't control the bar colors


From   Gawrich Stefan <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   AW: st: twoway bar: Can't control the bar colors
Date   Mon, 18 Sep 2006 14:28:05 +0200

> 
> Using the "color" option for each graph I always get error 
> R198 "option > color() not allowed". Code Example: 

> twoway bar count points if points <= 6, color(red) 
> 
> Im using Intercooled Stata 9.2 (Aug 2006-Version) on Windows XP.
> ----------------------------------------------------------------
> 
Svend Juul wrote: 
> I use Stata 9.2 on Windows XP, too, and the following works perfectly:
> 
> clear
> set obs 21
> gen points = _n-1
> gen count=round(50*uniform())
> 
> twoway                                            ///
>   (bar count points if points <= 6, color(red))   ///
>   (bar count points if points == 7, color(green)) ///
>   (bar count points if points > 7, color(blue))

*****************************************************

Thanks Svend for the test, now it's clear that it's some special error which
has nothing to do with the code. 
I also tried it with Intercooled 9.1 Stata on a XP-Notebook, same thing.

twoway bar count points, color(red) 
-> (option color() not allowed - R198)

other graphs:
scatter count points, mcolor(red)
 -> works
graph bar count , over(points) bar(1 color(red)) 
-> works (but of no use for me)
line count points, lcolor(red) 
-> (option color() not allowed - R198)

I also did a Stata repair install and checked the color.class and
color-style files. 

So I will contact Stata about this, perhaps they have a clue.

Best wishes 

Stefan


Dr. Stefan Gawrich
Hesse State Health Office
35683 Dilllenburg
Germany





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