plot.varSel | R Documentation |
Provides a descriptive plot of now the mean Mahalanobis distances change
as variables are added or deleted using varSelection
.
## S3 method for class 'varSel'
plot(x,main=NULL,nbest=NULL,arrows=TRUE,...)
x |
an object create by |
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 |
arrows |
if true, an arrow is added to the plot designating the best variables. |
... |
passed to boxplot functions |
Nicholas L. Crookston ncrookston.fs@gmail.com
varSelection
and yai
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.