leaflet_plot: Function to quickly plot spatial geometries on a leaflet map.

View source: R/leaflet_plot.R

leaflet_plotR Documentation

Function to quickly plot spatial geometries on a leaflet map.

Description

Function to quickly plot spatial geometries on a leaflet map.

Usage

leaflet_plot(
  sp,
  popup = NULL,
  force = TRUE,
  colour = "#03F",
  opacity = 0.5,
  fill_opacity = 0.2,
  hill_shading = FALSE
)

Arguments

sp

Spatial object to be plotted.

popup

Vector of variables to be used as a pop-up on the map.

force

Should the projection be forced to WGS84?

colour

Colour of geometry.

opacity

Opacity of the edge of the geometry.

fill_opacity

Internal opacity of the geometry.

hill_shading

Should hill shading be displayed on the map?

Value

A leaflet map.

Author(s)

Stuart K. Grange


skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.