Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stacked bar charts [was: Re: st: RE: Features for Stata 14]


From   Ronan Conroy <[email protected]>
To   "<[email protected]>" <[email protected]>
Subject   Re: stacked bar charts [was: Re: st: RE: Features for Stata 14]
Date   Wed, 19 Feb 2014 15:51:01 +0000

Note the neat trick in Nick's example for grading the colours in your chart by using different intensities of the same colour.

bcolor(blue*.2) produces a 20% blue and yes, bcolor(blue*2) produces an extra intense blue.

It's one of the things I wish I had known earlier.

r




Prof. Ronan Conroy
Associate Professor of Biostatistics


RCSI Department of Epidemiology and Public Health Medicine
Royal College of Surgeons in Ireland
Lower Mercer Street, Dublin 2, Ireland
T: 01-402-2431
E: [email protected]  W: www.rcsi.ie

RCSI DEVELOPING HEALTHCARE LEADERS
WHO MAKE A DIFFERENCE WORLDWIDE
On 2014 Feabh 18, at 16:29, Nick Cox wrote:

> . catplot rep78 foreign, asyvars stack percent(foreign) ///
> bar(1, bcolor(red*0.4)) bar(2, bcolor(red*0.2)) ///
> bar(3, bcolor(blue*0.2)) bar(4, bcolor(blue*0.4)) bar(5, bcolor(blue*0.6)) ///
> legend(row(1))

Ronán Conroy
[email protected]
Associate Professor
Division of Population Health Sciences
Royal College of Surgeons in Ireland
Beaux Lane House
Dublin 2


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index