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   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: Differentiate one bar in a graph
Date   Mon, 11 Apr 2005 18:02:45 +0100

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



--
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
Email: [email protected]
Website: http://phs.kcl.ac.uk/rogernewson/

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

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