plot.maccest: Plot Method for Class 'maccest'

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

View source: R/mt_maccest.R

Description

Plot accuracy rate with standard derivation of each classifier.

Usage

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

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.

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.

Value

Returns plot of class maccest.

Author(s)

Wanchang Lin

See Also

maccest, boxplot.maccest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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)

mt documentation built on Feb. 2, 2022, 1:07 a.m.