plot.Conf {ORION} | R Documentation |
Base Classifier Performance Heatmap
Description
Plots a heatmap that shows base classifier performance.
Usage
## S3 method for class 'Conf'
plot(
x = NULL,
classNames = NULL,
onlySens = FALSE,
symmetric = FALSE,
main = "summary of base classifiers",
xlab = "classes",
ylab = "base classifiers",
digits = 3,
ignore = 0,
first.colors = c("#f5f5f5", "#b2182b"),
second.colors = c("#f5f5f5", "#2166ac"),
other.colors = c("#f5f5f5", "#1b7837"),
na.color = c("yellow"),
las = 1,
srt = 30,
color.key = FALSE,
cex = 1,
cex.lab = 1,
...
)
Arguments
x |
A Conf object as it is returned by |
classNames |
Vector of the original class names. If not given the class number is used instead. |
onlySens |
A logical indicating if the plot should should be restricted to the class-wise sensitivities of the base classifiers. |
symmetric |
Logical indicating whether a symmetric base classifier (TRUE) is used. Only used when onlySens is TRUE. |
main |
See |
xlab |
A title for the x axis (see |
ylab |
A title for the y axis (see |
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. |
first.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. |
second.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. |
other.colors |
A 2-element vector of the color for the minimal and maximal class-wise sensitivity of the other class. The color palette is calcuated by an interpolation between the 2 given colors. |
na.color |
Color, which is used for indicating the empty elements (if the given class is not part of the cascade). |
las |
See |
srt |
Angle used to rotate the strings of the x-axis and y-axis labels (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. |
Details
This function plots a heatmap of the base classifier performance.
Value
No return value, called to generate the heatmap plot.
See Also
conf
, plot.Subcascades
, plot.ConfusionTable
Examples
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 <- conf(predMap)
plot(conf, onlySens=TRUE, symmetric=TRUE)