Learn R Programming

mt (version 2.0-1.20)

boxplot.frankvali: Boxplot Method for Class 'frankvali'

Description

Boxplot method for error rate of each feature subset.

Usage

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

Value

Returns boxplot of class frankvali.

Arguments

x

An object of class frankvali.

...

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 frankvali. It plots the error rate of each feature subset.

See Also

frankvali

Examples

Run this code
data(abr1)
dat <- abr1$pos[,110:500]

x   <- preproc(dat, method="log10")  
y   <- factor(abr1$fact$class)        

dat <- dat.sel(x, y, choices=c("1","2"))
x.1 <- dat[[1]]$dat
y.1 <- dat[[1]]$cls

pars <- valipars(sampling="cv",niter=2,nreps=4)
res  <- frankvali(x.1,y.1,fs.method = "fs.rfe",fs.len = "power2", 
                  cl.method = "knn",pars = pars)
res
summary(res)
boxplot(res)                  

Run the code above in your browser using DataLab