Learn R Programming

auditor (version 0.3.0)

plotModelCorrelation: Model Correlation Plot

Description

Matrix of plots

Usage

plotModelCorrelation(object, ..., values = "Fitted values")

Arguments

object

An object of class modelAudit or modelResiduals.

...

Other modelAudit or modelResiduals objects to be plotted together.

values

"Fitted values" or "Predicted response" for model fitted values or "Residuals" for residual values.

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)
plotModelCorrelation(lm_au, rf_au)

# }

Run the code above in your browser using DataLab