interactive.plot.enmtools.species: Plot an enmtools.species object on an interactive map

View source: R/interactive.plot.enmtools.species.R

interactive.plot.enmtools.speciesR Documentation

Plot an enmtools.species object on an interactive map

Description

Function that take an enmtools.species object and plots an interactive map of the presence points, background points (if applicable), and species range raster (if applicable). This function uses leaflet for mapping and will only function properly if you have an active internet connection.

Usage

## S3 method for class 'enmtools.species'
interactive.plot(
  x,
  map.provider = "Esri.WorldPhysical",
  cluster.points = FALSE,
  max.bytes = 4194304,
  ...
)

Arguments

x

entools.species object to plot

map.provider

Name of a map provider for the underlying interactive base map. Default is "Esri.WorldPhysical", and attractive topographic map with no place labels. A preview of all map provider options can be viewed at http://leaflet-extras.github.io/leaflet-providers/preview/

cluster.points

Should points be clustered? If TRUE, points close together will be grouped into clusters that can be interactively expanded by clicking on them.

max.bytes

Maximum size of range raster image to plot. Defaults to 4MB (4194304 bytes) but can be overridden if you have a large range raster. Be aware that the image will be knitted into an output file if you're working in R Markdown, causing your output file to be huge if the raster is huge.

...

other arguments (not used currently)

Value

An interactive leaflet plot visualizing the data present in the species object.


danlwarren/ENMTools documentation built on April 23, 2024, 3:12 p.m.