View source: R/plot.rocrisca.R
| plot.rocrisca | R Documentation | 
A plot of ROC curves is produced. In the RISCA package, it concerns the functions roc.binary, roc.net, roc.summary, and roc.time.
## S3 method for class 'rocrisca'
plot(x, ..., information=TRUE)
| x | An object of class  | 
| ... | Additional arguments affecting the plot. | 
| information | A logical value indicating whether the non-information line is plotted. The default values is TRUE. | 
Yohann Foucher <Yohann.Foucher@univ-poitiers.fr>
# import and attach the data example
data(dataDIVAT3)
# A subgroup analysis to reduce the time needed for this exemple
dataDIVAT3 <- dataDIVAT3[1:400,]
# The ROC curve to evaluate the crude capacities of the recipient age for the
# prognosis of post kidney transplant mortality (we ignore the censoring process)
roc1 <- roc.binary(status="death", variable="ageR", confounders=~1,
data=dataDIVAT3, precision=seq(0.1,0.9, by=0.1) )
# The corresponding ROC graph with color and symbols
plot(roc1, type="b", xlab="1-specificity", ylab="sensibility", col=2, pch=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.