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

Re: st: Differentiate one bar in a graph

From   Taavi Lai <>
Subject   Re: st: Differentiate one bar in a graph
Date   Mon, 11 Apr 2005 22:31:20 +0300

Twoway did the trick, thank you for the directions

Roger Newson wrote:

At 17:16 11/04/2005, Taavi 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

This might be a job for -eclplot- (downloadable from SSC) with the -supby()- option. However, in official Stata, you could probably use -graph twoway- to superimpose 2 -twoway bar- charts, one for the special bar and one for the other bars, and give them two different -if- qualifiers and -bcolor()- options. In Stata, type

help twoway bar

to find out more about -twoway bar- charts.

I hope this helps.


Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
Division of Asthma, Allergy and Lung Biology
King's College London

5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605

Opinions expressed are those of the author, not the institution.

* For searches and help try:
*   For searches and help try:

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