Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.AUC

Plot the sensitivity, specificity, accuracy and roc curves.


Description

This function plots the (partial) sensitivity, specificity, accuracy and roc curves.

Usage

## S3 method for class 'AUC'
 plot(x, y = NULL, ..., type = "l",
    add = FALSE, min = 0, max = 1)

Arguments

x

an object produced by one of the functions sensitivity, specificity, accuracy, or roc

y

Not used.

...

Arguments to be passed to methods, such as graphical parameters. See ?plot

type

Type of plot. Default is line plot.

add

Logical. If TRUE the curve is added to an existing plot. If FALSE a new plot is created.

min

a numeric value between 0 and 1, denoting the cutoff that defines the start of the area under the curve

max

a numeric value between 0 and 1, denoting the cutoff that defines the end of the area under the curve

Author(s)

Authors: Michel Ballings and Dirk Van den Poel, Maintainer: Michel.Ballings@UGent.be

References

Ballings, M., Van den Poel, D., Threshold Independent Performance Measures for Probabilistic Classifcation Algorithms, Forthcoming.

See Also

Examples

data(churn)

plot(sensitivity(churn$predictions,churn$labels))

plot(specificity(churn$predictions,churn$labels))

plot(accuracy(churn$predictions,churn$labels))

plot(roc(churn$predictions,churn$labels))

AUC

Threshold independent performance measures for probabilistic classifiers.

v0.3.0
GPL (>= 2)
Authors
Michel Ballings and Dirk Van den Poel
Initial release
2013-09-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.