Learn R Programming

mt (version 2.0-1.20)

plot.accest: Plot Method for Class 'accest'

Description

Plot accuracy rate of each iteration.

Usage

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

Value

Returns plot of class accest.

Arguments

x

An object of class accest.

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 accest. It plots the accuracy rate against the index of iterations.

See Also

accest

Examples

Run this code
# Iris data
data(iris)
# Stratified cross-validation of PCALDA for Iris data
pars <- valipars(sampling="cv", niter=10, nreps=10, strat=TRUE)
acc  <- accest(Species~., data = iris, method = "pcalda", pars = pars)
              
acc
summary(acc)
plot(acc)

Run the code above in your browser using DataLab