Skip to content
Prev 28713 / 29559 Next

question on the use of Leaflet for plotting points and rater GeoTIFF

Hi,

I don't think we can run the code since it isn't reproducible (see
https://CRAN.R-project.org/package=reprex
<https://cran.r-project.org/package=reprex> for help with that.)  But here
are some hints:

flipped color bar - I love to use RSeek.org which is an R-centric search
engine -  you may want to bookmark it or add it to your search engine list
if your browser supports that. https://rseek.org/?q=leaflet+flip+color+bar
This search hits a number of discussions on flipping the color bar.

color intensity - oooooh, there is so much discussion in the world about
colors.  By default raster images have opacity of 1 (fully opaque) when
rendered in leaflet, so really it is a matter of finding the color table
you want and then applying colorNumeric judiciously.  For me it comes down
to trial and error.  If you are looking for eye pop! then perhaps check out
the viridis options.  See ?colorNumeric

Cheers,
Ben
On Thu, Aug 12, 2021 at 2:24 PM Gabriel Cotlier <gabiklm01 at gmail.com> wrote: