File: dotplot.diff.resamples.Rd

package info (click to toggle)
r-cran-caret 7.0-1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,036 kB
  • sloc: ansic: 210; sh: 10; makefile: 2
file content (73 lines) | stat: -rw-r--r-- 1,954 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/resamples.R
\name{dotplot.diff.resamples}
\alias{dotplot.diff.resamples}
\alias{levelplot.diff.resamples}
\alias{densityplot.diff.resamples}
\alias{bwplot.diff.resamples}
\title{Lattice Functions for Visualizing Resampling Differences}
\usage{
\method{dotplot}{diff.resamples}(x, data = NULL, metric = x$metric[1], ...)
}
\arguments{
\item{x}{an object generated by \code{\link{diff.resamples}}}

\item{data}{Not used}

\item{metric}{a character string for which metrics to plot. Note:
\code{dotplot} and \code{levelplot} require exactly two models whereas the
other methods can plot more than two.}

\item{\dots}{further arguments to pass to either
\code{\link[lattice:histogram]{densityplot}},
\code{\link[lattice:dotplot]{dotplot}} or
\code{\link[lattice:levelplot]{levelplot}}}
}
\value{
a lattice object
}
\description{
Lattice functions for visualizing resampling result differences between
models
}
\details{
\code{densityplot} and \code{bwplot} display univariate visualizations of
the resampling distributions. \code{levelplot} displays the matrix of
pair-wide comparisons. \code{dotplot} shows the differences along with their
associated confidence intervals.
}
\examples{

\dontrun{
#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")

}

}
\seealso{
\code{\link{resamples}}, \code{\link{diff.resamples}},
\code{\link[lattice:bwplot]{bwplot}},
\code{\link[lattice:histogram]{densityplot}},
\code{\link[lattice:xyplot]{xyplot}}, \code{\link[lattice:splom]{splom}}
}
\author{
Max Kuhn
}
\keyword{hplot}