image.map: Nice image plots for maps

image.mapR Documentation

Nice image plots for maps

Description

This function plots an image for a georeferenced matrix, assuming x and y axes are longitude and latitude.

Usage

## S3 method for class 'map'
image(
  lon,
  lat,
  z,
  zlim = NULL,
  center = 0,
  legend = TRUE,
  hires = FALSE,
  add = FALSE,
  nlevel = 1000,
  horizontal = FALSE,
  legend.shrink = 0.9,
  legend.width = 1.2,
  slice = NULL,
  legend.mar = ifelse(horizontal, 3.1, 5.1),
  legend.lab = NULL,
  graphics.reset = FALSE,
  bigplot = NULL,
  smallplot = NULL,
  legend.only = FALSE,
  col = rev(rainbow(nlevel/10, start = 0/6, end = 4/6)),
  lab.breaks = NULL,
  axis.args = NULL,
  legend.args = NULL,
  axes = TRUE,
  midpoint = FALSE,
  border = TRUE,
  lwd = 1,
  land = TRUE,
  land.col = "black",
  labels = TRUE,
  sea.col = "white",
  boundaries.col = "grey",
  grid = FALSE,
  grid.col = "white",
  grid.lwd = 0.5,
  ...
)

Arguments

lon

vector or matrix of longitude values, following the conventions of image.

lat

vector or matrix of latitude values, following the conventions of image.

z

matrix of values, following the conventions of image.

center
legend
hires
add
nlevel
horizontal
legend.shrink
legend.width
slice
legend.mar
legend.lab
graphics.reset
bigplot
smallplot
legend.only
col
lab.breaks
axis.args
legend.args
axes
midpoint
border
lwd
land
land.col
labels
sea.col
boundaries.col
grid
grid.col
...

Author(s)

Ricardo Oliveros-Ramos, modified from xxx's image.plot from the fields package

Examples

load(anchovy)
image.map(lon=anchovy$lon, lat=anchovy$lat, z=anchovy$z)

roliveros-ramos/kali documentation built on Jan. 14, 2023, 4:30 a.m.