plot.vol_payload: Plot a browser payload

View source: R/payload.R

plot.vol_payloadR Documentation

Plot a browser payload

Description

Draws where the bytes of the payload go, level by level, against how much of each level carries a value.

Usage

## S3 method for class 'vol_payload'
plot(x, type = c("size", "level"), depth = NULL, ...)

Arguments

x

A vol_payload.

type

One of "size" or "level".

depth

Depth for type = "level", which draws the level as the browser will read it, decoded from its image.

...

Passed to plot.vol_field() for type = "level".

Details

Plot a browser payload

The size panel is the honest picture of what compression is doing. A level whose cells are mostly absent costs a few kilobytes whatever its nominal dimensions, so the payload of a marine field is dominated by the shallow levels where the basin is widest.

Value

A ggplot object, returned invisibly.

See Also

vol_payload() for the constructor, print.vol_payload() and summary.vol_payload() for the other methods, plot.vol_field() for the level view it delegates to.

Examples

data(med_mhw)
p <- vol_payload(med_mhw, tempfile("payload"))
plot(p)
plot(p, type = "level", depth = 50)

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