| resampleHist | R Documentation |
Create a lattice histogram or densityplot from the resampled outcomes from a
train object.
resampleHist(object, type = "density", ...)
object |
an object resulting form a call to |
type |
a character string. Either "hist" or "density" |
... |
options to pass to histogram or densityplot |
All the metrics from the object are plotted, but only for the final model.
For more comprehensive plots functions, see histogram.train,
densityplot.train, xyplot.train,
stripplot.train.
For the plot to be made, the returnResamp argument in
trainControl should be either "final" or "all".
a object of class trellis
Max Kuhn
train, histogram,
densityplot, histogram.train,
densityplot.train, xyplot.train,
stripplot.train
## Not run:
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]
knnFit <- train(TrainData, TrainClasses, "knn")
resampleHist(knnFit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.