| plot.vol_field | R Documentation |
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.
## S3 method for class 'vol_field'
plot(
x,
type = c("level", "profile", "coverage"),
depth = NULL,
cmap = "matter",
limits = NULL,
...
)
x |
A |
type |
One of |
depth |
Depth in metres for |
cmap |
Name of a colour table, from |
limits |
Numeric pair, the ends of the colour scale. Defaults to the 1st and 99th percentiles of the level. |
... |
Ignored. |
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.
A ggplot object, returned invisibly.
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.
data(med_mhw)
plot(med_mhw)
plot(med_mhw, depth = 50, cmap = "thermal")
plot(med_mhw, type = "profile")
plot(med_mhw, type = "coverage")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.