plot
function would be preferable because it produces a legend (and has some additional options).image(x, ...)
image
(graphics package)image(x, y=1, z=NULL, ...)
x
a Raster* object
...
}image
, contour
, plot
r <- raster(system.file("external/test.grd", package="raster"))
image(r)
Run the code above in your browser using DataLab