Description Usage Arguments Value Author(s) See Also Examples
Visualize a single time slice of a NETCDF object. If you want to project correctly, use OSMscale as in the example below. (https://github.com/brry/OSMscale#intro).
1 2 3 4 5 | vis_nc(nc, index = 1, x = as.vector(nc$lon), y = as.vector(nc$lat),
z = as.vector(nc$var[, , index]), apply = NA, zlab = paste(nc$varname,
nc$time[index]), add = FALSE, pch = 15, cex = 1.25, col = seqPal(100,
colors = RColorBrewer::brewer.pal(9, "OrRd")), bg.leg = NA, cex.leg = 1,
legargs = NULL, ...)
|
nc |
nc object from |
index |
Integer: a single time slice number to be plotted.
To plot several slices, use |
x, y, z |
x,y,z Coordinates. DEFAULT: nc elements lon, lat, var (@ time index) |
apply |
Function to be applied to aggregate time in nc$var, e.g. mean or median. If given, index and z are ignored! Should take na.rm as argument. DEFAULT: NA |
zlab |
Legend title. DEFAULT: varname time |
add |
Logical: add to existing plot? DEFAULT: FALSE |
pch, cex |
Point character and character expansion (symbol size). DEFAULT: 15, 1.25 |
col |
Color palette. DEFAULT: |
bg.leg, cex.leg |
Background and character size for legend. DEFAULT: NA, 1 |
legargs |
List of further arguments passed to legend (
|
... |
Further arguments passed to
|
colPoints
list output
Berry Boessenkool, berry-b@gmx.de, Feb 2017
read_nc
,
vis_nc_all
and vis_nc_film
for several time slices,
get_ncPoint
, colPoints
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.