From 3092d88971ea10b0dccd2b30fe92fce2cf7578ac Mon Sep 17 00:00:00 2001 From: gilbertocamara Date: Sun, 12 Jan 2025 18:40:33 -0300 Subject: [PATCH] fix bug plot RGB with 3 dates --- R/api_tmap_v4.R | 1 + sits.Rproj | 1 + 2 files changed, 2 insertions(+) diff --git a/R/api_tmap_v4.R b/R/api_tmap_v4.R index 7f75d2afa..73b48f745 100644 --- a/R/api_tmap_v4.R +++ b/R/api_tmap_v4.R @@ -107,6 +107,7 @@ # open RGB file rgb_st <- .raster_open_rast(c(red_file, green_file, blue_file)) + names(rgb_st) <- c("red", "green", "blue") p <- tmap::tm_shape(rgb_st, raster.downsample = FALSE) + tmap::tm_rgb( diff --git a/sits.Rproj b/sits.Rproj index c1d6889aa..280b7fd8d 100644 --- a/sits.Rproj +++ b/sits.Rproj @@ -1,4 +1,5 @@ Version: 1.0 +ProjectId: 85f873d3-da0f-4f35-8a60-0a0316605680 RestoreWorkspace: Default SaveWorkspace: Ask