plotMyRegion: Wrapper function to plot the distribution of a species

Description Usage Arguments Author(s) See Also Examples

View source: R/plotMyRegion.R

Description

This is a wrapper function that is called by getSpecies2.

Usage

1
2
plotMyRegion(region = NULL, extent = NULL, distribution = NULL,
  species = species, ...)

Arguments

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 plot

Author(s)

P. A. Harrison

See Also

getSpecies2, plot

Examples

 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")

peteraharrison/PUCA documentation built on Sept. 16, 2019, 7:56 a.m.