| plot.vol_payload | R Documentation |
Draws where the bytes of the payload go, level by level, against how much of each level carries a value.
## S3 method for class 'vol_payload'
plot(x, type = c("size", "level"), depth = NULL, ...)
x |
A |
type |
One of |
depth |
Depth for |
... |
Passed to |
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.
A ggplot object, returned invisibly.
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.
data(med_mhw)
p <- vol_payload(med_mhw, tempfile("payload"))
plot(p)
plot(p, type = "level", depth = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.