Skip to contents

Plot a mesh on a Leaflet map

Usage

plot_mesh(
  mesh,
  spatial_data = NULL,
  longitude_column = "LONG",
  latitude_column = "LAT",
  markers = NULL
)

Arguments

mesh

Mesh data

spatial_data

Spatial data, either a SpatialPolygonsDataFrame, SpatialPointsDataFrame or an object that can be converted to a data.frame with longitude and latitude columns

longitude_column

Longitude column in spatial_data

latitude_column

Latitude column in spatial_data name

markers

Markers to display on top of mesh. A named list with latitude, longitude and label names must be given. Expects longitude name to be longitude, latitude name to be latitude, label name to be label.

Value

leaflet::leaflet