You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I couldn't get transparency to work in plotRGB(). See:
library(terra)
#> terra 1.7.83b<- rast(system.file("ex/logo.tif", package="terra"))
plotRGB(b, alpha=.5)
# the documentation says to set a value between 0 and 255
plotRGB(b, alpha=120)
#> Error in grDevices::rgb(t(grDevices::col2rgb(cols)), alpha = alpha, maxColorValue = 255): alpha level 30600, not in 0:255
packageVersion("terra")
#> [1] '1.7.83'terra::gdal(lib="all")
#> gdal proj geos #> "3.6.2" "9.1.1" "3.11.1"
I've also tried the a argument without success.
The text was updated successfully, but these errors were encountered:
Hi,
I couldn't get transparency to work in
plotRGB()
. See:I've also tried the
a
argument without success.The text was updated successfully, but these errors were encountered: