## 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, ...)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)plotNULL 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)rasterImageplotb <- 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