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

plot() ignores 'colNA' when 'alpha' is defined #1102

Closed
AMBarbosa opened this issue Apr 7, 2023 · 1 comment
Closed

plot() ignores 'colNA' when 'alpha' is defined #1102

AMBarbosa opened this issue Apr 7, 2023 · 1 comment

Comments

@AMBarbosa
Copy link
Contributor

When plotting a raster map, the 'colNA' argument works fine until you add a value for 'alpha':

r <- rast(system.file("ex/elev.tif", package = "terra"))
plot(r, colNA = "blue")  # OK
plot(r, colNA = "blue", alpha = 0.6)  # NA pixels no longer blue

I'm using terra version 1.7.23. Tried on both Windows 10 Home and Linux Mint Cinnamon 21.1.
Cheers!

@rhijmans
Copy link
Member

rhijmans commented Apr 9, 2023

Thank you for this --- and keep them coming, please. Fixed.

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

2 participants