| plot.accest {mt} | R Documentation |
Plot Method for Class 'accest'
Description
Plot accuracy rate of each iteration.
Usage
## S3 method for class 'accest'
plot(x, main = NULL, xlab = NULL, ylab = NULL, ...)
Arguments
x |
An object of class |
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
accest. It plots the accuracy rate against the index of iterations.
Value
Returns plot of class accest.
Author(s)
Wanchang Lin
See Also
Examples
# 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)
[Package mt version 2.0-1.20 Index]