plot(..., add=TRUE), or functions like points, lines, polygonsplot(x, col=rev(terrain.colors(25)), maxpixels=100000, axes = TRUE, xlab="", ylab="", ...)
x a RasterLayer object
col A color palette, i.e. a vector of n contiguous colors such as rainbow, heat.colors, and topo.colors, on one or your own making
maxpixels Maximum number of pixels used for the map
... Any argument that can be passed to image.plot and to plot
}
x=RasterStack or RasterBrick, y=numeric or missing
plot(x, col=rev(terrain.colors(25)), subsample=TRUE, maxpixels=100000, addbox=TRUE, axes = TRUE, xlab="", ylab="", ...)
x a RasterStack or RasterBrick object
y The index of a RasterLayer in a RasterStack to be plotted. Either a single number between 1 and nlayers(rstack), a vector of numbers, or missing. If y is missing, all RasterLayers in the RasterStack will be plotted.
col A color palette, i.e. a vector of n contiguous colors such as rainbow, heat.colors, and topo.colors, on one or your own making
subsample Logical. If TRUE, the image is resampled using maxpixels
maxpixels Maximum number of pixels used for the map
addbox Logical. If TRUE a box is drawn around the map
axes see ?image
xlab see ?image
ylab see ?image
... Any argument that can be passed to image.plot and to plot
}
x=RasterLayer, y=RasterLayer
Produces a scatter plot of the values of x against those of y.
plot(x, y, maxpixels=100000, cex=0.1, ...)
x a RasterLayer object
y a RasterLayer object
maxpixels Maximum number of pixels in the map display
cex point size
... Any argument that can be passed to plot
}
x=Extent, y="ANY"
Draws the (rectangular) bounding box of a raster object.
plot(ext)
ext a Extent object
}persp, contour, pairs, hist, plot3Dr <- raster(nrows=36, ncols=18)
r <- setValues(r, runif(ncell(r)))
plot(r)
plot(extent(r))Run the code above in your browser using DataLab