avisMapSpecies | R Documentation |
This function map the species occurrences in the Iberian Peninsula.
avisMapSpecies(names, maptype = "admin", ...)
names |
scientific name of the species (it could be a list of scientific names). E.g. "Pica pica" |
maptype |
Available types of map are 'admin', administrative provinces of Spain (by default) or 'phys', physical map of Spain. |
... |
other filters passed to the observations query with avisQuerySpecies |
For constructing these maps we used free online map repositories. We downloaded the Spanish administrative map from http://www.diva-gis.org/ and the Spanish physical map of http://www.openstreetmap.org/ using the R- library OpenStreetMap.
a plot with the occurrences of the species in the Iberian Peninsula. Maps have high resolution, so they could be printed.
## Not run: avisMapSpecies("Bubo bubo", "phys") # if interested in several species, you can explore the database using avisMapSpecies avisMapSpecies (list("Tyto alba", "Athene noctua", "Bubo bubo", "Strix aluco"), maptype="phys") # and you can save those maps individually using the tiff function directory<- "C:/your_directory" species<- list("Tyto alba", "Athene noctua", "Bubo bubo", "Strix aluco") for (x in species){ tiff (file.path (directory, paste ("/", x, ".tiff", sep=""))) avisMapSpecies (x) dev.off() } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.