Learn R Programming

auditor (version 0.2.1)

plotModelRanking: Model Ranking Plot

Description

Radar plot with model scores. Scores are scaled to [0,1], each score is inversed and divided by maximum score value.

Usage

plotModelRanking(object, ..., type = c("MAE", "MSE", "REC", "RROC"),
  new.score = NULL)

Arguments

object

An object of class ModelAudit.

...

Other modelAudit objects to be plotted together.

type

Vector of score names to be plotted.

new.score

A named list of functions that take one argument: object of class ModelAudit and return a numeric value. The measure calculated by the function should have the property that lower score value indicates better model.

Value

ggplot object

See Also

plot.modelAudit

Examples

Run this code
# NOT RUN {
library(car)
lm_model <- lm(prestige~education + women + income, data = Prestige)
lm_au <- audit(lm_model, data = Prestige, y = Prestige$prestige)
library(randomForest)
rf_model <- randomForest(prestige~education + women + income, data = Prestige)
rf_au <- audit(rf_model, data = Prestige, y = Prestige$prestige)
plotModelRanking(lm_au, rf_au)

# }

Run the code above in your browser using DataLab