plot.vol_field: Plot a gridded field

View source: R/field.R

plot.vol_fieldR Documentation

Plot a gridded field

Description

Three views of the field outside the browser: a map of one depth level, the vertical profile of its horizontal statistics, and the coverage of the grid against depth.

Usage

## S3 method for class 'vol_field'
plot(
  x,
  type = c("level", "profile", "coverage"),
  depth = NULL,
  cmap = "matter",
  limits = NULL,
  ...
)

Arguments

x

A vol_field.

type

One of "level", "profile" or "coverage".

depth

Depth in metres for type = "level"; the nearest level is drawn. Defaults to the shallowest.

cmap

Name of a colour table, from vol_colormaps().

limits

Numeric pair, the ends of the colour scale. Defaults to the 1st and 99th percentiles of the level.

...

Ignored.

Details

Plot a gridded field

The map is drawn as an equirectangular projection at the standard parallel of the domain's own middle, so a degree of longitude is shorter than a degree of latitude by the cosine of that latitude and the shapes are the ones an atlas draws. Plain plate carree, which sets the two degrees equal, stretches the Mediterranean vertically by a factor of 1.27 and a polar domain by far more. The browser view uses the same convention when it looks straight down, so the two are directly comparable. The profile shows the median and the interquartile range of the finite cells at each level, which for a marine field is taken over a shrinking sample as the bathymetry rises; the coverage panel is what says by how much.

Value

A ggplot object, returned invisibly.

See Also

vol_field() for the constructor, print.vol_field() for the one-screen report, summary.vol_field() for the numbers behind the profile panel, vol_colormaps() for the colour tables, vol_widget() for the same field in the browser.

Examples

data(med_mhw)
plot(med_mhw)
plot(med_mhw, depth = 50, cmap = "thermal")
plot(med_mhw, type = "profile")
plot(med_mhw, type = "coverage")

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