Learn R Programming

ecoengine (version 1.3)

ee_map: LeafletJS Map

Description

Builds an interactive map of locations for any species

Usage

ee_map(ee_obj, dest = tempdir(), title = "Ecoengine species map",
  incl.data = TRUE)

Arguments

ee_obj
A ecoengine object of type observations as generated by ee_observations
dest
Location where the html file and geojson file should be stored. Default is the temp directory
title
Title of the map.
incl.data
Default is TRUE. Writes geoJSON data into the html file to get around security restrictions in browsers like Google Chrome. Set to FALSE to read from a separate local geoJSON file.

Examples

Run this code
lynx_data <- ee_observations(genus = "Lynx", georeferenced = TRUE, page = "all", quiet = TRUE)
ee_map(lynx_data, title = "Lynx distribution map")
# Now let's map out foxes
vulpes <- ee_observations(genus = "vulpes", georeferenced = TRUE, quiet = TRUE)
ee_map(vulpes, title = "Fox distributions")
# You can also map photos
ee_map(ee_photos(georeferenced = TRUE))

Run the code above in your browser using DataLab