Using the survival library, it is possible to get a plot of all the subjects
in a sample and it is possible to get a plot of all subgroups in the same
plot. How does one get a separate plot for each subgroup?

plot(survfit(Surv(time,death==1)~group),col=1:10)

The above results in a hideous graphic representation.

I would prefer to specify

par(mfrow = c(2, 5))

and have each plot separately


-- 
Farrel

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to