lines.roc(pROC) | Spotfire S+ Documentation |
This convenience function adds a ROC line to a ROC curve.
## S3 method for class 'roc': lines(x, ...) ## S3 method for class 'smooth.roc': lines(x, ...) ## S3 method for class 'roc': lines.roc(x, lwd=3, ...) ## S3 method for class 'formula': lines.roc(x, data, ...) ## Default S3 method: lines.roc(x, predictor, ...) ## S3 method for class 'smooth.roc': lines.roc(x, ...)
x |
a roc object from the roc function (for plot.roc.roc), a formula (for plot.roc.formula) or a response vector (for plot.roc.default). |
predictor, data |
arguments for the roc function. |
lwd |
line width (see par ). |
... |
graphical parameters for lines , and
especially type (see plot.default ) and
arguments for par such as col (color),
lty (line type) or line characteristics lend ,
ljoin and lmitre .
|
The lines.roc
function just adds a ROC curve to an existing plot with basic styling options. To plot more details such as the AUC value or confidence interval, see the add=TRUE
argument to plot.roc
.
This function returns a list of class “roc” invisibly. See roc
for more details.
data(aSAH) rocobj <- plot.roc(aSAH$outcome, aSAH$s100b, type="n") lines(rocobj, type="b", pch=16, col="blue") # Without using 'lines': rocobj <- plot.roc(aSAH$outcome, aSAH$s100b, type="b", pch=16, col="blue")