Learn R Programming

rAvis (version 0.1.4)

avisMap: Renders a map for the observations provided in 'obs'

Description

This function should be used with avisQuerySpecies, to set a particular query (with or without filters) and get the observations that we want to map. It just allow to map one species. See avisMapSpecies for multiple maps.

Usage

avisMap(obs, label = "", maptype = "admin")

Arguments

obs
set of observations returned by any of the avisQueryXXX functions
label
label for the map. E.g. "Occurrences of Pica pica in Proyecto AVIS"
maptype
Available types of map are 'admin', administrative provinces of Spain (by default) or 'phys, physical map of Spain.

Value

a plot with the occurrences of the species in the Iberian Peninsula. Maps have high resolution, so they could be printed.

Examples

Run this code
## Not run: 
# obs<- avisQuerySpecies ("Pica pica", args = list(habitat = "bosque"))
# avisMap(obs, label = "Pica pica")
# avisMap(obs, label = "Pica pica", maptype = "phys")
# ## End(Not run)

Run the code above in your browser using DataLab