ecospat (version 2.0)

ecospat.occ.desaggregation: Species Occurrences Desaggregation

Description

Remove species occurrences in a dataframe that are closer to each other than a specified distance threshold.

Usage

ecospat.occ.desaggregation (dfvar, colxy, colvar=NULL, min.dist, plot=T)

Arguments

dfvar
A dataframe with x, y, and variables.
colxy
The range of columns for x and y in df.
colvar
The range of columns for variables in df.
min.dist
The minimun distance threshold in the sub-dataframe.
plot
A boolean indicating whether to plot the resulting distribution of occurrences.

Value

Details

The number of occurrences kept and excluded is shown in a dynamic plot. At the end of the selection process, a plot showing the resulting distribution of occurrences will be plotted if argument plot=F

Examples

Run this code

## Not run: 
# spp <- ecospat.testNiche
# sp1 <- spp[1:32,1:3]
# 
# occ.sp1 <- ecospat.occ.desaggregation(dfvar=sp1,colxy=2:3,colvar=NULL, min.dist=500,plot=TRUE)
# ## End(Not run)

Run the code above in your browser using DataLab