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

plotRGB(..., smooth = TRUE) does not seem to work #1307

Closed
rCarto opened this issue Oct 11, 2023 · 1 comment
Closed

plotRGB(..., smooth = TRUE) does not seem to work #1307

rCarto opened this issue Oct 11, 2023 · 1 comment

Comments

@rCarto
Copy link

rCarto commented Oct 11, 2023

The smooth argument in plotRGB() does not seem to work as intended :

library(terra)
#> terra 1.7.51
r.spatraster <- terra::rast(system.file("ex/logo.tif", package="terra"))   
par(mfrow =c(1,2))
terra::plotRGB(r.spatraster, smooth = FALSE)
terra::plotRGB(r.spatraster, smooth = TRUE)

packageVersion("terra")
#> [1] '1.7.51'
sessionInfo()
#> R version 4.3.1 (2023-06-16)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Debian GNU/Linux 12 (bookworm)
#> 
#> Matrix products: default
#> BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.11.0 
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.11.0
#> 
#> locale:
#>  [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C              
#>  [3] LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8    
#>  [5] LC_MONETARY=fr_FR.UTF-8    LC_MESSAGES=fr_FR.UTF-8   
#>  [7] LC_PAPER=fr_FR.UTF-8       LC_NAME=C                 
#>  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
#> [11] LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C       
#> 
#> time zone: Europe/Paris
#> tzcode source: system (glibc)
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] terra_1.7-51
#> 
#> loaded via a namespace (and not attached):
#>  [1] styler_1.10.2     digest_0.6.33     codetools_0.2-19  fastmap_1.1.1    
#>  [5] xfun_0.40         magrittr_2.0.3    glue_1.6.2        R.utils_2.12.2   
#>  [9] knitr_1.44        htmltools_0.5.6.1 rmarkdown_2.25    lifecycle_1.0.3  
#> [13] cli_3.6.1         R.methodsS3_1.8.2 vctrs_0.6.3       reprex_2.0.2     
#> [17] withr_2.5.1       compiler_4.3.1    R.oo_1.25.0       R.cache_0.16.0   
#> [21] purrr_1.0.2       rstudioapi_0.15.0 tools_4.3.1       evaluate_0.22    
#> [25] Rcpp_1.0.11       yaml_2.3.7        rlang_1.1.1       fs_1.6.3

Created on 2023-10-11 with reprex v2.0.2

The issue arises here: riatelab/maptiles#27

@rCarto rCarto changed the title plotRGB(..., smooth = TRUE) does not seems to work plotRGB(..., smooth = TRUE) does not seem to work Oct 11, 2023
@rhijmans
Copy link
Member

Thanks. 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