lets.presab.birds(path, 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)
TRUE
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
lets.shFilter
# Constructing a Presence/Absence matrix for birds
#(this will not work if do not change the path for the folder were you kept the spatial data)
PAM <- lets.presab.birds("YOURPATH/YOURPATH/BIRDS")
plot(PAM) # Species richness map
Run the code above in your browser using DataLab