plot.vol_encoding: Plot the cost of the transfer

View source: R/encode.R

plot.vol_encodingR Documentation

Plot the cost of the transfer

Description

Draws the quantisation error against the value it was measured at, and the depth profile of that error.

Usage

## S3 method for class 'vol_encoding'
plot(x, type = c("value", "depth"), bins = 40L, ...)

Arguments

x

A vol_encoding.

type

One of "value" or "depth".

bins

Number of value bins.

...

Ignored.

Details

Plot the cost of the transfer

The first view is the diagnostic that decides whether the transfer was the right one. A square-root transfer on a positive skewed field gives an error that grows with the value, slowly, and stays flat across the range where most of the cells are; an error that spikes in the middle of the range says the transfer is wrong for this field.

Value

A ggplot object, returned invisibly.

See Also

vol_encode() for the constructor, print.vol_encoding() and summary.vol_encoding() for the other methods, vol_payload() for the step that writes these codes into images.

Examples

data(med_mhw)
e <- vol_encode(vol_resample(med_mhw))
plot(e)
plot(e, type = "depth")

volumr documentation built on Dec. 2, 2026, 5:07 p.m.