Statalist


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

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


From   "Peggy Chrisman" <peggyc@u.washington.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: changing line colors in Kaplan-Meier graphs
Date   Mon, 7 Sep 2009 16:47:39 -0700

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. Thanks for the help.
Peggy


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