
Function to plot a scatterplot matrix with a classification result.
classscatter(formula, data, method, col.correct = "black",
col.wrong = "red", gs = NULL, ...)
The actual error rate.
formula of the form groups ~ x1 + x2 + ...
.
That is, the response is the grouping factor and the right hand side specifies the (non-factor) discriminators.
Data frame from which variables specified in formula are preferentially to be taken.
character, name of classification function
(e.g. “lda
”).
color to use for correct classified objects.
color to use for missclassified objects.
group symbol (plot character), must have the same length as the data.
If NULL
, as.character(groups)
is the default.
further arguments passed to the underlying classification method or plot functions.
Karsten Luebke, karsten.luebke@fom.de
data(B3)
library(MASS)
classscatter(PHASEN ~ BSP91JW + EWAJW + LSTKJW,
data = B3, method = "lda")
Run the code above in your browser using DataLab