Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display color raster with plet() #1596

Open
aloboa opened this issue Aug 30, 2024 · 1 comment
Open

Display color raster with plet() #1596

aloboa opened this issue Aug 30, 2024 · 1 comment

Comments

@aloboa
Copy link

aloboa commented Aug 30, 2024

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)
@aloboa
Copy link
Author

aloboa commented Nov 9, 2024

With terra 1.7.83 I get now:

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

image

which is better but still not the same as
plot(s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant