minosse.poly: The species geographic range polygon

Description Usage Arguments Value Author(s) Examples

View source: R/minosse.poly.R

Description

This function turns MInOSSE geographic range raster map into a spatial polygon with the related surface area.

Usage

1
minosse.poly(minosse_res, th_num=3)

Arguments

minosse_res

the output of minosse.target function or the minosse_res element list in the minosse function output.

th_num

Numeric. The Regression Kriging prediction map binarization threshold value index as reported in the optimal.thresholds function in the PresenceAbsence package. Default 3 = MaxSens+Spec, maximizes (sensitivity+specificity)/2.

Value

the target species geographic range as a SpatialPolygonsDataFrame object.

Author(s)

Francesco Carotenuto, francesco.carotenuto@unina.it

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
  
  library(raster)
  data(lgm)
  raster(system.file("exdata/prediction_ground.gri", package="DeepTime"))->prediction_ground

  minosse_dat<-minosse.data(obj=lgm,species_name="Mammuthus_primigenius",
  domain="land",coc.by="locality",min.occs=3,abiotic.covs=NULL,
  combine.covs=FALSE,reduce_covs_by="pca",covs_th=0.95,c.size="mean",
  bkg.predictors="presence",min.bkg=100,sampling.by.distance=TRUE,
  crop.by.mcp=FALSE,prediction.ground=prediction_ground,projection="laea",
  lon_0=85,lat_0=45,n.clusters="automatic",seed=625)

  minosse_res<-minosse.target(resp=minosse_dat[[1]],predictors=minosse_dat[[2]],
  bkg="presence", min.bkg = 100,n.sims=10,sampling.by.distance=TRUE,n.folds=1,
  n.sims.clusters="automatic",seed=625)

  minosse.poly(minosse_res)
  

francesco-carotenuto/PaleoMacroEco documentation built on Dec. 23, 2019, 6:36 p.m.