Learn R Programming

auditor (version 0.3.0)

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, ..., scores = c("MAE", "MSE", "REC", "RROC"),
  new.score = NULL, table = TRUE)

Arguments

object

An object of class ModelAudit.

...

Other modelAudit objects to be plotted together.

scores

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.

table

Logical. Specifies if rable with score values should be plotted

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