thinning | R Documentation |
Resamples a set of points with x and y coordinates to impose a minimum distance among nearby points.
thinning(xy, minimum.distance = NULL)
xy |
A data frame with columns named "x" and "y" representing geographic coordinates. |
minimum.distance |
Numeric, minimum distance to be set between nearby points, in the same units as the coordinates of xy. |
Generally used to remove redundant points that could produce pseudo-replication, and to limit sampling bias by disaggregating clusters of points.
A data frame with the same columns as xy
with points separated by the defined minimum distance.
thinning_til_n()
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 }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.