Description Usage Arguments Value See Also Examples
Plots an extended confusion table.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## S3 method for class 'ConfusionTable'
plot(
x = NULL,
classNames = NULL,
main = "extended confusion table",
xlab = "original class labels",
ylab = "predicted class labels",
cascLab = "inner classes",
otherLab = "outer classes",
digits = 3,
ignore = 0,
casc.colors = c("#f5f5f5", "#8c510a"),
other.colors = c("#f5f5f5", "#01665e"),
colSep = "#b2182b",
las = 1,
color.key = TRUE,
cex = 1,
cex.lab = 1,
...
)
|
x |
A ConfusionTable object as it is returned by |
classNames |
Vector of the original class names. If not given the class number is used instead. |
main |
See |
xlab |
A title for the x axis (see |
ylab |
A title for the y axis (see |
cascLab |
Character string used as header for the cascade part of the extended confusion table. |
otherLab |
Character string used as header for the other class part of the extended confusion table. |
digits |
Integer indicating the number of decimal places to be used (see |
ignore |
A numeric value between 0 and 1. All confusion and purity values below this number are not written as string into the corresponding element. |
casc.colors |
A 2-element vector of the color for the minimal and maximal class-wise sensitivity of the first class. The color palette is calcuated by an interpolation between the 2 given colors. |
other.colors |
A 2-element vector of the color for the minimal and maximal class-wise sensitivity of the second class. The color palette is calcuated by an interpolation between the 2 given colors. |
colSep |
Color, which is used for the vertical line separating the cascade classes and the other classes. |
las |
See |
color.key |
Specifies whether a color key is drawn (TRUE) or not (FALSE). |
cex |
See |
cex.lab |
See |
... |
Further arguments passed from other methods. |
No return value, called to generate the confusion table plot.
confusionTable
, plot.Subcascades
, plot.Conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(TunePareto)
data(esl)
data <- esl$data
labels <- esl$labels
foldList <- generateCVRuns(labels = labels,
ntimes = 2,
nfold = 2,
leaveOneOut = FALSE,
stratified = TRUE)
predMap <- predictionMap(data, labels, foldList = foldList,
classifier = tunePareto.svm(), kernel='linear')
# generate Subcascades object
conf.table <- confusionTable(predMap,cascade='0>1>3>4',other.classes = 'all')
plot(conf.table)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.