dotPlot

0th

Percentile

Create a dotplot of variable importance values

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

Keywords
hplot
Usage
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.

See Also

varImp, dotplot

Aliases
  • dotPlot
Examples
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]

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

knnImp <- varImp(knnFit)

dotPlot(knnImp)
Documentation reproduced from package caret, version 4.25, License: GPL-2

Community examples

Looks like there are no examples yet.