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
I'm working with an RGB raster in leaflet (some Landsat data). I'm stretching and sampling it down so that it's small enough. The following works great.
# stretch and then resample like geom_spatraster
landsat_rgb_stretched <- stretch(landsat_colors_1230[[1:3]],
minq = 0.02, maxq = 0.98) |>
spatSample(size = 5e5, as.raster = TRUE, method = "regular")
# set RGB channels
RGB(landsat_rgb_stretched) <- 3:1
# plot
plotRGB(landsat_rgb_stretched)
But, when I try and put it into leaflet, I get a muddled mess. It's close, but, very weird. I'm trying to figure out why.
I'm working with an RGB raster in leaflet (some Landsat data). I'm stretching and sampling it down so that it's small enough. The following works great.
But, when I try and put it into leaflet, I get a muddled mess. It's close, but, very weird. I'm trying to figure out why.
The text was updated successfully, but these errors were encountered: