Logical: If TRUE, reset par before exiting. Default = TRUE
theme
String: Theme for mplot3.xy, "light" or "dark". Default = "light'
col
Color vector for classes. Default = ucsfPalette
contour.col
Color for decision boundary. Default = "black"
contour.lwd
Float: Line width for decision boundary. Default = .3
point.pch
Integer: pch for data points. Default = c(3, 4)
point.alpha
Float: Alpha for data points. Default = 1
Value
Predicted labels for background grid (invisibly)
Details
If data has more than 2 variables, any variable not selected using vars will be fixed to their mean
Underlying model (e.g. randomForest, rpart, etc) must support standard R predict format for classification:
predict(model, newdata, type = "class")