Displays community dissimilarity versus geographic distance with a smooth loess trend. The y-axis is constrained to [0, 1] to reflect the range of Sorensen (binary Bray-Curtis) dissimilarity.
Arguments
- decay_data
A data frame as returned by
calculate_distance_decay
with columnsDistance
(pairwise Euclidean distances among quadrat centroids) andDissimilarity
(pairwise Sorensen dissimilarities).
Details
Points show pairwise site comparisons; the loess smoother summarizes the overall distance-decay pattern. Input should already exclude self-comparisons.
Examples
if (FALSE) { # \dontrun{
dd <- calculate_distance_decay(abund_matrix, site_coords)
plot_distance_decay(dd)
} # }