| partimat | R Documentation | 
Provides a multiple figure array which shows the classification of observations based on 
classification methods (e.g. lda, qda) for every combination of two variables. 
Moreover, the classification borders are displayed and the apparent error rates are given in each title.
partimat(x,...)
## Default S3 method:
partimat(x, grouping, method = "lda", prec = 100, 
    nplots.vert, nplots.hor, main = "Partition Plot", name, mar, 
    plot.matrix = FALSE, plot.control = list(), ...)
## S3 method for class 'data.frame'
partimat(x, ...)
## S3 method for class 'matrix'
partimat(x, grouping, ..., subset, na.action = na.fail)
## S3 method for class 'formula'
partimat(formula, data = NULL, ..., subset, na.action = na.fail)
x | 
 matrix or data frame containing the explanatory variables (required, if   | 
grouping | 
 factor specifying the class for each observation (required, if   | 
formula | 
 formula of the form   | 
method | 
 the method the classification is based on, currently supported are:
  | 
.
prec | 
 precision used to draw the classification borders (the higher the more precise; default: 100).  | 
data | 
 Data frame from which variables specified in formula are preferentially to be taken.  | 
nplots.vert | 
 number of rows in the multiple figure array  | 
nplots.hor | 
 number of columns in the multiple figure array  | 
subset | 
 index vector specifying the cases to be used in the training sample. (Note: If given, this argument must be named.)  | 
na.action | 
 specify the action to be taken if   | 
main | 
 title  | 
name | 
 Variable names to be printed at the axis / into the diagonal.  | 
mar | 
 numerical vector of the form   | 
plot.matrix | 
 logical; if   | 
plot.control | 
 A list containing further arguments passed to the underlying 
plot functions (and to   | 
... | 
 Further arguments passed to the classification   | 
Warnings such as  ‘parameter “xyz” couldn't be set in high-level plot function’ are expected,
if making use of ....
Karsten Luebke, karsten.luebke@fom.de, Uwe Ligges, Irina Czogiel
for much more fine tuning see drawparti
library(MASS)
data(iris)
partimat(Species ~ ., data = iris, method = "lda")
## Not run: 
partimat(Species ~ ., data = iris, method = "lda", 
    plot.matrix = TRUE, imageplot = FALSE) # takes some time ...
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.