Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: How to add markers to plots from sts graph


From   graupel75@gmail.com
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: How to add markers to plots from sts graph
Date   Sun, 23 Jun 2013 14:44:20 +0800

Hi Kai Huang,

The options are a little obscure for -sts graph- as below:

******* Begin example *******

webuse drug2, clear

sts graph, surv by(drug) ///
	plot1opts(lpattern(solid) lcolor(black) lwidth(thick)) 	///
	plot2opts(lpattern(dash) lcolor(navy) lwidth(thick)) 	///
	legend(size(large) ring(0) pos(2)) title("")

******* End example *******

cheers
Andrew Lover

______________________________________________
Epidemiologist
Centre for Infectious Disease Epidemiology Research (CIDER)
Saw Swee Hock School of Public Health
National University of Singapore
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index