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

Re: st: Re: Differentiate one bar in a graph


From   Taavi Lai <[email protected]>
To   [email protected]
Subject   Re: st: Re: Differentiate one bar in a graph
Date   Mon, 11 Apr 2005 22:44:39 +0300

My appologies
The problem was, that I plotted my bar graph using one variable and an -over( )- option and could'nt figure out how to make the "lookofbar_options" color one of the bars in a different color. Thanks to Roger Newson I turned to twoway graphs and was able to solve my problem wiht overlaying two graphs.

Taavi

Friedrich Huebler wrote:


Taavi,

It would be easier for other list members to help if you could
provide more information about the kind of graph you are trying to
create. What command do you type to make the graph? Let's assume you
make a regular bar graph like this:

. sysuse auto, clear
. graph bar mpg trunk turn

In this case you could use the -bar()- option to assign colors to
individual bars.

. graph bar mpg trunk turn, bar(1, bcolor(navy)) bar(2,
bcolor(maroon)) bar(3, bcolor(navy))

This is explained in -whelp graph bar- under "lookofbar_options".

Friedrich Huebler

--- Taavi Lai <[email protected]> wrote:


Dear all,

I have a bar graph and I'd like to change a color of one bar (or
use sth similar to show its relative location compared to other bars).
Would appreciate your suggestions

Taavi




__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
*
* 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/

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