Learn R Programming

emil (version 1.1-6)

image.resample: Visualize resampling scheme

Description

Class specific extension to image.

Usage

## S3 method for class 'resample':
image(x, col, ...)

## S3 method for class 'crossval': image(x, col, ...)

Arguments

x
Resampling scheme, as returned by resample.
col
Color palette matching the values of x. Can also be the response vector used to create the scheme for automatic coloring.
...
Sent to plot.

Value

  • Nothing, produces a plot.

See Also

emil, resample

Examples

Run this code
image(resample("holdout", 60, frac=1/3, nfold=20))

y <- gl(2, 30)
image(resample("crossval", y, nfold=3, nrep=8), col=y)

Run the code above in your browser using DataLab