data(plants_df, plants_distance, plants_response)
# Test spatial autocorrelation at multiple distance thresholds
moran_multi <- moran_multithreshold(
x = plants_df[[plants_response]],
distance.matrix = plants_distance,
distance.thresholds = c(0, 1000, 5000)
)
# View results for all thresholds
moran_multi$per.distance
# Find optimal distance threshold
moran_multi$max.moran.distance.threshold
moran_multi$max.moran
# Plot shows spatial autocorrelation across scales
moran_multi$plot
Run the code above in your browser using DataLab