pseudo.present.points: Generation of pseudo present points for niche model building

Description Usage Arguments Value Author(s) Examples

View source: R/pseudo.present.points.R

Description

Randomly generate pseudo points around actual present distribution site when the number of present points is inadequate for building a niche model.

Usage

1
2
3
4
5
6
7
8
pseudo.present.points(
  data,
  outputNum = 50,
  lonRange = 2,
  latRange = 1,
  en.vir = NULL,
  map = TRUE
)

Arguments

data

Data frame, longitude and latitude of a single species.

outputNum

Numeric, the expected number of points.

lonRange

Range of the longitude of the points generated.

latRange

Range of the latitude of the points generated.

en.vir

RasterBrick, the globle bioclimate data obtained from "raster::getData" function.

map

Logical. Should a map be drawn?

Value

A data frame, containing actual present points and simulated pseudo points.

Author(s)

Cai-qing YANG (Email: yangcq_ivy(at)163.com) and Ai-bing ZHANG (Email:zhangab2008(at)cnu.edu.cn), Capital Normal University (CNU), Beijing, CHINA.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(en.vir)
#envir<-raster::getData("worldclim",download=FALSE,var="bio",res=2.5)
#en.vir<-raster::brick(envir)

data<-data.frame(species=rep("Acosmeryx anceus",3),
                 Lon=c(145.380,145.270,135.461),
                 Lat=c(-16.4800,-5.2500,-16.0810))


present.points<-pseudo.present.points(data,10,2,1,en.vir=en.vir)
present.points

NicheBarcoding documentation built on Dec. 21, 2021, 9:07 a.m.