dotplot.diff.resamples function

Lattice Functions for Visualizing Resampling Differences

Lattice Functions for Visualizing Resampling Differences

Lattice functions for visualizing resampling result differences between models

## S3 method for class 'diff.resamples' dotplot(x, data = NULL, metric = x$metric[1], ...)

Arguments

  • x: an object generated by diff.resamples
  • data: Not used
  • metric: a character string for which metrics to plot. Note: dotplot and levelplot require exactly two models whereas the other methods can plot more than two.
  • ...: further arguments to pass to either densityplot, dotplot or levelplot

Returns

a lattice object

Details

densityplot and bwplot display univariate visualizations of the resampling distributions. levelplot displays the matrix of pair-wide comparisons. dotplot shows the differences along with their associated confidence intervals.

Examples

## Not run: #load(url("http://topepo.github.io/caret/exampleModels.RData")) resamps <- resamples(list(CART = rpartFit, CondInfTree = ctreeFit, MARS = earthFit)) difs <- diff(resamps) dotplot(difs) densityplot(difs, metric = "RMSE", auto.key = TRUE, pch = "|") bwplot(difs, metric = "RMSE") levelplot(difs, what = "differences") ## End(Not run)

See Also

resamples, diff.resamples, bwplot, densityplot, xyplot, splom

Author(s)

Max Kuhn

  • Maintainer: Max Kuhn
  • License: GPL (>= 2)
  • Last published: 2024-12-10