Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Graph labels

From   "Svend Juul" <SJ@SOCI.AU.DK>
To   <>
Subject   Re: st: Graph labels
Date   Wed, 7 Mar 2007 17:31:56 +0100

Lucy Shum wrote:
I've got some Kaplan-Meier survival curves the detail several categories
within a graph. I use the following to specify the codes:
Sts graph, by(var) legend(label(1 "coliform") label(2 "xyz") label(3 "yui")
label(4 "wer") etc. up to label(10 "tuy"))
However, out of the 10 codes, there are always 2-3 codes that do not get
labeled despite the command. What could I be neglecting in the command?
I can not reproduce the error; the following works perfectly:
sysuse cancer.dta , clear
expand age
set seed 12345
gen group=ceil(10*uniform())
stset studytime , failure(died==1)
sts graph , by(group)  ///
   legend(label(1 "abc") label(2 "bcd") label(3 "cde") ///
   label(4 "def") label(5 "efg") label(6 "fgh") label(7 "ghi") ///
   label(8 "hij") label(9 "ijk") label(10 "jkl"))
I use Intercooled Stata for Windows, ver 9.2, 16 Feb 2007.
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6 
DK-8000 Aarhus C,  Denmark 
Phone, work:  +45 8942 6090 
Phone, home:  +45 8693 7796 
Fax:          +45 8613 1580 

*   For searches and help try:

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