As answered here: http://stackoverflow.com/a/1444/1457051
palette(c("red", "blue", "orange"))
par(lty=3)
plot(fit,ylim=c(0,1),xlim=c(0,2000))
though, as indicated in that post, you'll need to customize the
survrec:::plot.survfitr function to do more detailed customization.
On Sun
Dear all,
I am new to R and I am using the package 'survrec'. I would like to modify
the colors and lines in graphs with multiple groups. The package includes
this example:
data(colon)
fit<-survfitr(Survr(hc,time,event)~as.factor(dukes),data=colon,type="pena")
Using the arguments "col" or "lty"
2 matches
Mail list logo