Learn R Programming

auditor (version 0.3.0)

plotROC: Receiver Operating Characteristic (ROC)

Description

Receiver Operating Characteristic Curve is a plot of the true positive rate (TPR) against the false positive rate (FPR) for the different thresholds. It is useful for measuring and comparing the accuracy of the classificators.

Usage

plotROC(object, ...)

Arguments

object

An object of class ModelAudit or modelEvaluation.

...

Other modelAudit objects to be plotted together.

Value

ggplot object

See Also

plot.modelAudit, plotRROC, plotREC

Examples

Run this code
# NOT RUN {
library(mlbench)
data("PimaIndiansDiabetes")
Pima <- PimaIndiansDiabetes
Pima$diabetes <- ifelse(Pima$diabetes == "pos", 1, 0)
glm_model <- glm(diabetes~., family=binomial,	data=Pima)
glm_au <- audit(glm_model, data = Pima, y = Pima$diabetes)
plotROC(glm_au)

# }

Run the code above in your browser using DataLab