Learn R Programming

mt (version 2.0-1.20)

boxplot.maccest: Boxplot Method for Class 'maccest'

Description

Boxplot method for the accuracy rate of each classifier.

Usage

# S3 method for maccest
boxplot(x,  ...)

Value

Returns boxplot of class maccest.

Arguments

x

An object of class maccest.

...

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

Author

Wanchang Lin

Details

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

See Also

maccest, plot.maccest

Examples

Run this code
# 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)

Run the code above in your browser using DataLab