Learn R Programming

warbleR (version 1.1.2)

xcmaps: Maps of Xeno-Canto recordings by species

Description

xcmaps creates maps to visualize the geographic spread of Xeno-Canto recordings.

Usage

xcmaps(X, img = TRUE, it = "jpeg", res = 100)

Arguments

X
Data frame output from querxc.
img
A logical argument specifying whether an image file of each species map should be returned, default is TRUE.
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.

Value

A map of Xeno-Canto recordings per species (image file), or a faceted plot of species map(s) in the active graphic device.

Details

This function creates maps for visualizing the geographic spread of recordings from the open-access online repository Xeno-Canto (http://www.xeno-canto.org/). The function takes the output of querxc as input. Maps can be displayed in the graphic devide or saved as images in the working directory.

Examples

Run this code
## Not run: 
# X <- querxc("Phaethornis anthophilus", download = FALSE)
# View(X)
# xcmaps(X)
# xcmaps(X, img = FALSE, it = "jpeg")
# ## End(Not run)

Run the code above in your browser using DataLab