Statalist


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

RE: st: changing line colors in Kaplan-Meier graphs


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: changing line colors in Kaplan-Meier graphs
Date   Tue, 8 Sep 2009 01:00:20 +0100

... so long as your readers are not red-green colour-blind. 

Nick 
n.j.cox@durham.ac.uk 

Peggy Chrisman

Hi Jorg,

I tried your code and it did not quite get me what I wanted, but it did 
stimulate my brain into the right direction. In case anyone is
interested.

 sts graph, by(monthgrpT) recast(line) lcolor("255 0 0" "0 255 0" "0 0
255") 
l
> pattern(solid) lwidth(medium) legend(title(Kaplan-Meier Estimates by 
> Treatmen
> t Duration))

This gave me a KM graph with red, blue and green line colors...looks
great. 

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



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