Displaying 1 result from an estimated 1 matches for "mycuminc".
Did you mean:
cuminc
2008 Dec 09
1
controlling axes in plot.cuminc (cmprsk library)
...lative incidence
curve using the plot.cuminc function in the CMPRSK library. The default
x-axis places tick marks and labels at 0, 20, 40, 60, and 80 (my data has
an upper limit of 96), whereas I want them at my own specified locations.
Here is my example code:
library(cmprsk)
attach(MYDATA)
MYCUMINC <-
cuminc(ftime=TIME,fstatus=STATUS,group=GROUP,rho=0,cencode=0,na.action=na.omit)
plot(MYCUMINC,xlim=c(0,96),ylim=c(0,0.5),xlab="",axes=F)
axis(1,at=c(0,8,16,24,32,48,72,96))
As you can see, I have tried using the "axes=F" parameter that works for
most plotting functions...