dotplot.varImp.train: Create a dotplot of variable importance values

Description Usage Arguments Value Author(s) See Also Examples

Description

A lattice dotplot is created from an object of class varImp.train.

Usage

1
dotPlot(x, top = min(20, dim(x$importance)[1]), ...)

Arguments

x

an object of class varImp.train

top

the number of predictors to plot

...

options passed to dotplot

Value

an object of class trellis.

Author(s)

Max Kuhn

See Also

varImp, dotplot

Examples

1
2
3
4
5
6
7
8
9
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]

knnFit <- train(TrainData, TrainClasses, "knn")

knnImp <- varImp(knnFit)

dotPlot(knnImp)

caret documentation built on May 21, 2017, 1:39 a.m.

Search within the caret package
Search all R packages, documentation and source code