Learn R Programming

yaImpute (version 1.0-32)

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 varSel
plot(x,main=NULL,nbest=NULL,arrows=TRUE,...)

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

Author

Nicholas L. Crookston ncrookston.fs@gmail.com

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