minosse.poly: The species geographic range polygon

View source: R/minosse.poly.R

minosse.polyR Documentation

The species geographic range polygon

Description

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

Usage

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

  ## Not run: 
  library(raster)
  data(lgm)
  raster(system.file("exdata/prediction_ground.gri", package="EcoPast"))->prediction_ground

  minosse_dat<-minosse.data(obj=lgm,species_name="Mammuthus_primigenius",
  domain="land",time.overlap=0.95,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,constrain.predictors=FALSE,temporal.tolerance=NULL,
  prediction.ground=prediction_ground,projection="laea",lon_0=85,lat_0=45,
  n.clusters=NULL,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=NULL,seed=625)

  minosse.poly(minosse_res)
  
## End(Not run)

francesco-carotenuto/EcoPast documentation built on April 16, 2023, 5:48 p.m.