drawparti | R Documentation |
Plot showing the classification of observations based on
classification methods (e.g. lda
, qda
) for two variables.
Moreover, the classification borders are displayed and the apparent error rates are given in each title.
drawparti(grouping, x, y, method = "lda", prec = 100, xlab = NULL,
ylab = NULL, col.correct = "black", col.wrong = "red",
col.mean = "black", col.contour = "darkgrey",
gs = as.character(grouping), pch.mean = 19, cex.mean = 1.3,
print.err = 0.7, legend.err = FALSE, legend.bg = "white",
imageplot = TRUE, image.colors = cm.colors(nc),
plot.control = list(), ...)
grouping |
factor specifying the class for each observation. |
x |
first explanatory vector. |
y |
second explanatory vector. |
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). |
xlab |
a title for the x axis. |
ylab |
a title for the y axis. |
col.correct |
color for correct classified objects. |
col.wrong |
color for wrong classified objects. |
col.mean |
color for class means (only for methods |
col.contour |
color of the contour lines (if |
gs |
group symbol (plot character), must have the same length as |
pch.mean |
plot character for class means (only for methods |
cex.mean |
character expansion for class means (only for methods |
print.err |
character expansion for text specifying the apparent error rate.
If |
legend.err |
logical; whether to plot the apparent error rate above the plot (if |
legend.bg |
Backgound colour to use for the legend. |
imageplot |
logical; whether to use an |
image.colors |
colors used for the |
plot.control |
A list containing further arguments passed to the underlying plot functions. |
... |
Further arguments passed to the classification |
Karsten Luebke, karsten.luebke@fom.de, Uwe Ligges, Irina Czogiel
partimat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.