| RGB {terra} | R Documentation |
Get or set the layers to be used as Red, Green and Blue when plotting a SpatRaster. Currently, the sole benefit of this is that plot will send the object to plotRGB
## S4 method for signature 'SpatRaster' RGB(x) ## S4 replacement method for signature 'SpatRaster' RGB(x)<-value
x |
SpatRaster |
value |
positive integers indicating the layers that are red, green and blue. Or |
s <- rast(system.file("ex/logo.tif", package="terra"))
RGB(s) <- c(1,2,3)
plot(s)
RGB(s) <- NULL