View source: R/im.plotRGB.auto.R
| im.plotRGB.auto | R Documentation |
This function visualizes a multispectral raster image using the first three bands as an RGB composite. It applies a linear contrast stretch to enhance visualization.
im.plotRGB.auto(x, title = "Main")
x |
A 'SpatRaster' object representing the input multispectral image. |
title |
A character string specifying the plot title (default: "Main"). |
Invisibly returns 'x'.
[im.import()], [im.ggplot()]
library(terra)
r <- rast(nrows = 10, ncols = 10, nlyrs = 3)
values(r) <- runif(ncell(r) * 3)
im.plotRGB.auto(r, title = "RGB Visualization")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.