Description Usage Arguments Author(s) See Also Examples
This is a wrapper function that is called by getSpecies2
.
1 2 | plotMyRegion(region = NULL, extent = NULL, distribution = NULL,
species = species, ...)
|
region |
The region or country to plot. |
extent |
The latitude and longitude extent of the plot region. |
distribution |
The latitude and longitude distribution of a species |
species |
The scientific or common name of a species |
... |
Additional arguments passed to |
P. A. Harrison
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Not run
library(ALA4R)
library(rgbif)
library(raster)
library(sp)
# Download the distribution for Eucalyptus ovata
# from the ALA server
#tmp <- PUCA::getSpecies2(species = "Eucalyptus ovata", client = "ALA",
# plot = FALSE, region = "Australia")
# Convert the latitude/longitude coodinates for a species
# to a 'SpatialPoints' class
#coordinates(tmp) <- Longitude + Latitude
#projection(tmp) <- CRS("+proj=longlat +datum=WGS84")
# Plot the distribution of your species
#PUCA::plotMyRegionegion(region = "Australia", distribution = tmp,
# species = "Eucalyptus ovata")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.