Description Usage Arguments Note See Also Examples
Create an "image" type plot of a RasterLayer. This is an implementation of a generic function in the graphics package. In most cases the
plot
function would be preferable because it produces a legend (and has some additional options).
1 2 3 4 5 6 |
x |
Raster* object |
maxpixels |
integer > 0. Maximum number of cells to use for the plot. If |
useRaster |
If |
main |
character. Main plot title |
... |
Any argument that can be passed to |
y |
If |
raster uses rasterImage
from the graphics package. For unknown reasons this does not work on Windows Server and on a few versions of Windows XP. On that system you may need to use argument useRaster=FALSE
to get a plot.
1 2 3 |
r <- raster(system.file("external/test.grd", package="raster"))
image(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.