[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: changing line colors in Kaplan-Meier graphs
From
Joerg Eulenberger <[email protected]>
To
[email protected]
Subject
Re: st: changing line colors in Kaplan-Meier graphs
Date
Mon, 07 Sep 2009 09:12:39 +0200
Dear Peggy,
try this
. sts graph, by(treatment) title(Kaplan-Meier Curves by Treatment)
plot1(lcolor(blue)lwidth(thick)) plot2(lcolor(red)lwidth(thick))
Jörg
Peggy Chrisman schrieb:
Dear List,
I am trying to change the line colors in a KM graph so they are easier
to differentiate, but I am doing something incorrectly. I have checked
the FAQs, but as yet have not found the solution. If someone can point
me to the solution I would be most appreciative.
Thanks, Peggy
Here is my code and error message:
sts graph, by(treatment) title(Kaplan-Meier Curves by Treatment)
legend(order(1 "Untreated" 2 "Treated") lcolor(blue red))
failure _d: deathtrue
analysis time _t: survival_yr
(note: named style blue red not found in class color, default
attributes used
*
* 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/
*
* 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–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |