Cumulative Gain Chart is is a plot of the rate of positive prediction against true positive rate for the different thresholds. It is useful for measuring and comparing the accuracy of the classificators.

plotCumulativeGain(object, ...)

## Arguments

object An object of class modelAudit or modelEvaluation. Other modelAudit objects to be plotted together.

## Value

ggplot object

plot.modelAudit
library(mlbench)
Pima$diabetes <- ifelse(Pima$diabetes == "pos", 1, 0)