lets.presab(shapes, xmn=-180, xmx=180, ymn=-90, ymx=90, resol=1,
remove.cells=TRUE, remove.sp=TRUE, show.matrix=FALSE,
crs=CRS("+proj=longlat +datum=WGS84"), cover=0, presence=NULL,
origin=NULL, seasonal=NULL, count=FALSE)
readShapePoly
to open these
files). Species name should be in a column (within the
.DBF table of the shapefile) called BINOMIAL or
biTRUE
the final
matrix will not contain cells in the grid with a value of
zero (i.e. sites with no species present).TRUE
the final matrix
will not contain species that do not match any cell in
the grid.TRUE
only the
presence-absence matrix will be shown.TRUE
a counting window
will open.show.matrix
.count
argument is set TRUE
, a counting window
will open so you can see the progress (i.e. in what polygon
the function is working). Note that the number of polygons
is not the same as the number of species that you have
(i.e. a species may have more than one polygon/shapefiles).plot.PresenceAbsence
lets.presab.birds
lets.shFilter
data(Phyllomedusa) # Spatial distribution polygons of south american frogs of genus Phyllomedusa.
PAM <- lets.presab(Phyllomedusa, xmn=-93, xmx=-29, ymn= -57, ymx=15)
summary(PAM)
plot(PAM) # Species richness map
plot(PAM, name="Phyllomedusa nordestina") # Map of the specific species
Run the code above in your browser using DataLab