Map Seascape grid with optional polygon as interactive map.

map_ss_grd(
  grd,
  ply = NULL,
  grd_palette = "Spectral",
  ply_color = "blue",
  grd_opacity = 0.8,
  ply_opacity = 0,
  basemap = leaflet::providers$Esri.OceanBasemap
)

Arguments

grd

grid

ply

polygon

grd_palette

color palette. Default: "Spectral".

ply_color

polygon color

grd_opacity

transparency of grid. Default: 0.8.

ply_opacity

transparency of polygon fill color. Default: 0.

basemap

basemap for leaflet. Default: leaflet::providers$Esri.OceanBasemap.

Value

Leaflet leaflet interactive map widget

Examples

ply <- get_url_ply("mbnms") ss_i <- get_ss_info() grds <- get_ss_grds(ss_i, ply, date_beg = "2020-01-01") # get first grid grd <- raster::raster(grds, 1) map_ss_grd(grd)