Resamples a set of points with x and y coordinates to impose a minimum distance among nearby points.
thinning(xy, minimum.distance = NULL)A data frame with columns named "x" and "y" representing geographic coordinates.
Numeric, minimum distance to be set between nearby points, in the same units as the coordinates of xy.
A data frame with the same columns as xy with points separated by the defined minimum distance.
Generally used to remove redundant points that could produce pseudo-replication, and to limit sampling bias by disaggregating clusters of points.
if(interactive()){
 #load example data
 data(plant_richness_df)
 #thinning to points separated by 5 degrees
 plant_richness.thin <- thinning(
   x = plant_richness_df,
   minimum.distance = 5 #points separated by at least 5 degrees
   )
 plant_richness.thin
}