Open frzambra opened 1 year ago
maybe try to change the min/max_scale
values and the js_scale
function.
The data has a pretty wide range (from -2000000000 to 150000).
I get a colored image with:
min_scale = 0; max_scale = 100000
js_scale = paste0("function (values) {
var scale = chroma.scale(['white', 'red', 'yellow', '#22c7e8']).domain([", min_scale, ",", max_scale, "]);
var val = values[0];
if (val === 0) return;
if (val < 0) return;
return scale(val).hex();
}")
I'm testing
addCOG
with some data I have in an AWS S3 bucket. I tried to follow to the examples on other issues but cannot get a colored map, all I can get is a gray scale.Also, I developed a shiny app to test
addCOG
andaddGeoRaster
which is in https://frzambra.shinyapps.io/visraster_app/Any thoughts?