Learn R Programming

mt (version 2.0-1.20)

plot.maccest: Plot Method for Class 'maccest'

Description

Plot accuracy rate with standard derivation of each classifier.

Usage

# S3 method for maccest
plot(x, main = NULL, xlab = NULL, ylab = NULL, ...)

Value

Returns plot of class maccest.

Arguments

x

An object of class maccest.

main

An overall title for the plot.

xlab

A title for the x axis.

ylab

A title for the y axis.

...

Additional arguments to the plot.

Author

Wanchang Lin

Details

This function is a method for the generic function plot() for class maccest. It plots the accuracy rate with standard derivation against the classifiers.

See Also

maccest, boxplot.maccest

Examples

Run this code
# Iris data
data(iris)
x      <- subset(iris, select = -Species)
y      <- iris$Species

method <- c("randomForest","svm","pcalda","knn")
pars   <- valipars(sampling="boot", niter = 10, nreps=4)
res    <- maccest(x, y, method=method, pars=pars,
                  comp="anova",kernel="linear") 

res
plot(res)

Run the code above in your browser using DataLab