rspatial / terra

R package for spatial data handling https://rspatial.github.io/terra/reference/terra-package.html
GNU General Public License v3.0
536 stars 89 forks source link

Display color raster with plet() #1596

Open aloboa opened 1 month ago

aloboa commented 1 month ago

Given

s <- rast(system.file("ex/logo.tif", package="terra"))   
s
plot(s)

image

Is it possible to get plet() to display the same colors?

plet(s)

image

Same result with

RGB(s) <- 1:3
plet(s)
s <- colorize(s, "color")
plet(s)