1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dotplot.varImp.train.R
\name{dotPlot}
\alias{dotPlot}
\title{Create a dotplot of variable importance values}
\usage{
dotPlot(x, top = min(20, dim(x$importance)[1]), ...)
}
\arguments{
\item{x}{an object of class \code{varImp.train}}
\item{top}{the number of predictors to plot}
\item{\dots}{options passed to \code{\link[lattice:xyplot]{dotplot}}}
}
\value{
an object of class \code{trellis}.
}
\description{
A lattice \code{\link[lattice:xyplot]{dotplot}} is created from an object of
class \code{varImp.train}.
}
\examples{
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]
knnFit <- train(TrainData, TrainClasses, "knn")
knnImp <- varImp(knnFit)
dotPlot(knnImp)
}
\seealso{
\code{\link{varImp}}, \code{\link[lattice:xyplot]{dotplot}}
}
\author{
Max Kuhn
}
\keyword{hplot}
|