opp_map_tracks | R Documentation |
Creates maps of biologger tracks from output of opp2KBA, opp_get_trips, or ctcrw_interpolation
opp_map_tracks(
tracks,
center = NULL,
zoom = NULL,
coast_scale = 10,
viridis_option = "D",
show_locs = T
)
tracks |
data.frame, sf points, or SpatialPointsDataFrame containing fields named ID, Longitude, and Latitude |
center |
Data frame containing columns 'Longitude' and 'Latitude' in decimal degrees, for plotting the colony or nest locations. |
zoom |
NULL or numeric value from 1:16, indicating the zoom level for map. If left as NULL (default) map extent will be defined by the bounding box of tracks. If numeric value is provided, bounding box will be cenetered on the mean location in tracks at the zoom level provided. |
coast_scale |
Mapping resolution for the coastline basemap. Must be one of: 10 - high resolution, 50 - medium resolution, 110 - low resolution. |
viridis_option |
A character string indicating the colormap option to use. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), "viridis" (or "D", the default option) and "cividis" (or "E"). |
show_locs |
Logical. Should biologger locations be plotted as points? |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.