Learn R Programming

emil (version 2.2.10)

image.resample: Visualize resampling scheme

Description

Class specific extension to image.

Usage

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

# S3 method for crossvalidation 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
# NOT RUN {
y <- gl(2, 30)
image(resample("crossvalidation", y, nfold=3, nrepeat=8), col=y)
# }

Run the code above in your browser using DataLab