Records are clustered for two reasons that a single map cannot tell
apart: the species may be fragmented (patchy habitat, isolated
populations), or recording may be uneven (some areas surveyed often,
others never). sampling_aggregation() measures the aggregation of the
records at a series of grains, with Morisita's index (Morisita 1962): the
area is cut into square cells of each grain and
$$I_\delta = Q \sum n_i (n_i - 1) / (N (N - 1))$$
over the Q cells, with n_i records in cell i and N in all
(1 = random, above 1 = aggregated). The same is computed for n_null
sets of random points in the area, so that the shape of the area does
not count as aggregation; ratio is the index of the records divided by
the median of the random sets.
Usage
sampling_aggregation(
points,
area,
target = NULL,
grains = c(5, 10, 25, 50, 100),
n_null = 19,
n_area = 1e+05,
coords = NULL,
points_crs = "EPSG:4326",
seed = 1
)Arguments
- points
Records of the focal species (data frame with coordinates, CSV path,
sforSpatVector).- area
The study area as a raster (e.g. the predictors cropped to M); cells with values in the first layer form the area.
- target
Optional records of a target group.
- grains
Cell sizes (km) of the grids.
- n_null
Number of random point sets.
- n_area
Number of cells of
areasampled to represent it.- coords, points_crs
Coordinate columns and CRS of the points.
- seed
Random seed.
Value
An object of class sampling_aggregation: table (one row per
grain: cells, index, null_median, null_max, ratio,
aggregated, and with target target_index, target_ratio,
focal_vs_target, reading) and settings.
Details
With target, the records of a target group recorded in the same way
(e.g. the genus or family, see target_group_check()) give the
aggregation of recording itself. If the focal records are about as
aggregated as the target group, their clustering follows the recording;
if clearly more, the species itself is patchier than the recording, as
in a fragmented distribution.
Status and limits. Morisita's index is established; its use at
several grains, against random points in the area and against a target
group, is preENM's. The grades (records aggregated when the index is
above all random sets; focal against target: "follows recording" for a
ratio of ratios between 0.67 and 1.5, "patchier than recording" above
1.5) are preENM defaults, not from the literature. The index depends on
the number of records at fine grains, where most cells are empty.
What to vary. grains, and the target group.
References
Morisita, M. (1962) I-sigma-index, a measure of dispersion of individuals. Researches on Population Ecology 4, 1-7. doi:10.1007/BF02533903
Examples
sim <- simulate_enm_data(seed = 1, n_presence = 200)
sa <- sampling_aggregation(sim$presence, sim$env, grains = c(10, 25, 50),
n_null = 9)
sa
#> Spatial aggregation of 200 records at 3 grains
#>
#> IN SHORT
#> - The records are aggregated at 50 km (Morisita's index up to 1.1 times
#> that of random points).
#> - Without a target group this cannot be told apart from uneven recording;
#> give `target` (records of a group recorded in the same way).
#>
#> grain_km cells index null_median null_max ratio aggregated
#> 10 4142 0.282 0.845 1.69 0.333 FALSE
#> 25 770 1.200 1.120 1.32 1.070 FALSE
#> 50 205 1.240 1.090 1.17 1.130 TRUE
#>
#> index = Morisita's I (1 = random); ratio = index / median of 9 random sets
#> in the area; aggregated = above all of them. focal_vs_target = ratio of the
#> records / ratio of the target group: 0.67-1.5 follows recording, above 1.5
#> patchier than recording; preENM defaults, not from the literature.
plot_sampling_aggregation(sa)
