map_xc | R Documentation |
map_xc
creates maps to visualize the geographic spread of 'Xeno-Canto'
recordings.
map_xc(
X,
img = TRUE,
it = "jpeg",
res = 100,
labels = FALSE,
path = NULL,
leaflet.map = FALSE,
leaflet.cluster = FALSE
)
X |
Data frame output from |
img |
A logical argument specifying whether an image file of each species
map should be returned, default is |
it |
A character vector of length 1 giving the image type to be used. Currently only "tiff" and "jpeg" are admitted. Default is "jpeg". |
res |
Numeric argument of length 1. Controls image resolution. Default is 100 (faster) although 300 - 400 is recommended for publication/ presentation quality. |
labels |
A logical argument defining whether dots depicting recording locations are labeled.
If |
path |
Character string with the directory path where the image files will be saved.
If |
leaflet.map |
Logical to control whether the package 'leaflet' is used for displaying the maps. 'leaflet' maps are interactive and display information about recordings and links to the Xeno-Canto website. If |
leaflet.cluster |
Logical to control if icons are clustered by locality (as in Xeno-Canto maps). Default is |
This function creates maps for visualizing the geographic spread of recordings from the open-access
online repository Xeno-Canto. The function takes the output of
query_xc
as input. Maps can be displayed in the graphic device (or Viewer if 'leaflet.map = TRUE') or saved as images in the
working directory. Note that only recordings with geographic coordinates are displayed.
A map of 'Xeno-Canto' recordings per species (image file), or a faceted plot of species map(s) in the active graphic device.
Marcelo Araya-Salas (marcelo.araya@ucr.ac.cr) and Grace Smith Vidaurre
Araya-Salas, M., & Smith-Vidaurre, G. (2017). warbleR: An R package to streamline analysis of animal acoustic signals. Methods in Ecology and Evolution, 8(2), 184-191.
## Not run:
# search in xeno-canto
X <- query_xc("Phaethornis anthophilus", download = FALSE)
# create image in R graphic device
map_xc(X, img = FALSE)
# create leaflet map
map_xc(X, leaflet.map = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.