boxplot.maccest: Boxplot Method for Class 'maccest'

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/mt_maccest.R

Description

Boxplot method for the accuracy rate of each classifier.

Usage

1
2
## S3 method for class 'maccest'
boxplot(x,  ...)

Arguments

x

An object of class maccest.

...

Additional arguments to the plot, such as main, xlab and ylab.

Details

This function is a method for the generic function boxplot() for class maccest. It plots the accurary rate for each classifier.

Value

Returns boxplot of class maccest.

Author(s)

Wanchang Lin

See Also

maccest, plot.maccest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Iris data
data(iris)
x      <- subset(iris, select = -Species)
y      <- iris$Species

method <- c("randomForest","svm","knn")
pars   <- valipars(sampling="cv", niter = 2, nreps=5)
tr.idx <- trainind(y, pars=pars)
res    <- maccest(x, y, method=method, pars=pars,
                  comp="anova",kernel="linear") 

res
boxplot(res)

mt documentation built on Nov. 15, 2021, 9:06 a.m.