## S3 method for class 'RasterStackBrick':
plotRGB(x, r=1, g=2, b=3, scale, maxpixels=500000, stretch=NULL,
ext=NULL, interpolate=FALSE, colNA='white', alpha, bgalpha, addfun=NULL, zlim=NULL,
zlimcol=NULL, axes=FALSE, xlab='', ylab='', asp=NULL, add=FALSE, ...)
x
if that is known and larger than 255Extent
object to zoom in to a region of interest (see drawExtent
)TRUE
, interpolate the image when drawingNA
values)plot
NULL
the values outside the range of zlim get the color of the extremes of the range. If zlimcol has any other value, the values outside the zlim range get the color of NA
values (see colNA)TRUE
axes are drawn (and arguments such as main="title"
will be honored)TRUE
add values to current plotplot
or rasterImage
plot
b <- brick(system.file("external/rlogo.grd", package="raster"))
plotRGB(b)
plotRGB(b, 3, 2, 1)
plotRGB(b, 3, 2, 1, stretch='hist')
Run the code above in your browser using DataLab