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]

[no subject]



Scott

On Sat, Nov 20, 2010 at 7:31 PM, Michael McCulloch
<[email protected]> wrote:
> Hello Statalist members,
> In the following -sts graph- command, the display produces a solid line for both groups 1 and 3, even though I've specified "." for the -lpattern- suboption.
>
> Any suggestions on how to get each plotted line to have its own -lpattern- would be greatly appreciated.
>
> clear
> sysuse cancer.dta
> replace drug=4 in 1/10
> tab drug
> sts graph, by(drug) saving("km", replace ) tmax(120) ///
>        title("Stage I") ///
>        legend( label(1 "1") ///
>                        label(2 "2") ///
>                        label(3 "3") ///
>                        label(4 "4")) ///
>        plot1opts(lpattern(1) lcolor(black)) ///
>        plot2opts(lpattern(-) lcolor(black)) ///
>        plot3opts(lpattern(.) lcolor(black)) ///
>        plot4opts(lpattern(_) lcolor(black)) ///
>        xtitle("Survival time in months") graphregion(margin(tiny)) ///
>        l2title("Percent surviving") xmtick(0(12)120) xlabel(0 12 24 60 120) censored(single) ///
>        risktable(, order(1 "1" 2 "2" 3 "3" 4 "4") rowtitle(, ///
>            justification(left)) title(, at(rowtitle)))
>
>
> Best wishes,
>
> Michael McCulloch, LAc MPH PhD
> Pine Street Foundation
> 124 Pine Street
> San Anselmo, CA 94960-2674
> tel:    415-407-1357
> fax:    206-338-2391
>

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index