Learn R Programming

yaImpute (version 1.0-20)

plot.varSel: Boxplot of mean Mahalanobis distances from varSelection()

Description

Provides a descriptive plot of now the mean Mahalanobis distances change as variables are added or deleted using varSelection.

Usage

## S3 method for class 'varSel':
plot(x,main=NULL,nbest=NULL,arrows=TRUE,\dots)

Arguments

x
an object create by varSelection
main
becomes the plot title, if NULL one is generated
nbest
number of variables designated in the plot as the best; if null the number is computed by bestVars
arrows
if true, an arrow is added to the plot designating the best variables.
...
passed to boxplot functions

See Also

varSelection and yai

Examples

Run this code
require(yaImpute)

data(iris)
set.seed(12345)

x <- iris[,1:2]  # Sepal.Length Sepal.Width 
y <- iris[,3:4]  # Petal.Length Petal.Width 

vsel <- varSelection(x=x,y=y,nboot=5,useParallel=FALSE)

plot(vsel)

Run the code above in your browser using DataLab