Quick leaflet map of raster

qmap_r(
  r,
  r_title,
  na0 = T,
  method = "ngb",
  boundary_shp =
    "~/Gdrive Ecoquants/projects/bbnj/data/derived/boundary/high_seas_s05.shp"
)

Arguments

r

raster

r_title

title of raster layer

na0

convert 0s to NA (default = FALSE)

method

interpolation method for web mercator, "ngb" (nearest neighbor) or "bilinear" (default "ngb")

boundary_shp

path to high seas boundary shapefile