image.map | R Documentation |
This function plots an image for a georeferenced matrix, assuming x and y axes are longitude and latitude.
## 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, ... )
lon |
vector or matrix of longitude values, following the conventions
of |
lat |
vector or matrix of latitude values, following the conventions
of |
z |
matrix of values, following the conventions of |
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 |
|
... |
Ricardo Oliveros-Ramos, modified from xxx's image.plot
from
the fields package
load(anchovy) image.map(lon=anchovy$lon, lat=anchovy$lat, z=anchovy$z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.