plot.rocrisca: Plot Method for 'rocrisca' Objects

View source: R/plot.rocrisca.R

plot.rocriscaR Documentation

Plot Method for 'rocrisca' Objects

Description

A plot of ROC curves is produced. In the RISCA package, it concerns the functions roc.binary, roc.net, roc.summary, and roc.time.

Usage

## S3 method for class 'rocrisca'
plot(x, ..., information=TRUE)

Arguments

x

An object of class rocrisca, returned by the functions roc.binary, roc.net, roc.summary, and roc.time.

...

Additional arguments affecting the plot.

information

A logical value indicating whether the non-information line is plotted. The default values is TRUE.

Author(s)

Yohann Foucher <Yohann.Foucher@univ-poitiers.fr>

Examples


# 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)

RISCA documentation built on June 22, 2024, 12:22 p.m.