plot.tdROC {tdROC} | R Documentation |
Plot the ROC curve estimated by tdROC()
.
## S3 method for class 'tdROC'
plot(x, lwd = 2, xlab = "1-specificity",
ylab = "sensitivity", xlim = c(0, 1), ylim = c(0, 1), col = "black",
main = "ROC curve", abline = T, ...)
x |
the object returned by |
lwd |
user-specified line width. Default is |
xlab |
user-specified label for x-axis. Default is " |
ylab |
user-specified label for y-axis. Default is " |
xlim |
user-specified limit for x axis. Default is |
ylim |
user-specified limit for y axis. Default is |
col |
user-specified color for ROC curve. Defualt is " |
main |
user-specified title for the plot. Default is " |
abline |
user-specified reference diagnol line. Default is |
... |
for future methods |
Returns a plot of ROC curve.
library( survival )
data( mayo );
dat <- mayo[ , c( "time","censor","mayoscore5" )] ;
fm <- tdROC( X = dat$mayoscore5, Y = dat$time, delta = dat$censor,
tau = 365*6, span = 0.1, nboot = 0, alpha = 0.05, n.grid = 1000, cut.off = 5:9 )
# plot the object "fm" from tdR0C()
plot.tdROC( fm ) ;