Diagnose Sampling Bias in Occurrence Data
Source:R/diagnose_sampling_bias.R
diagnose_sampling_bias.RdPlots occurrence points over a sampling effort proxy surface and calculates a "Bias Correlation Score" to quantify how much the data is skewed toward human infrastructure.
Examples
# \donttest{
try({
effort <- generate_effort_surface("Luxembourg", resolution = 10000)
bg_points <- sample_bias_aware_background(effort, n_points = 10)
diagnose_sampling_bias(bg_points, effort)
})
#> Downloading border for Luxembourg...
#> Downloading major road network (this may take a minute)...
#> Waiting 14.9997501373291 seconds
#> Error in httr2::req_perform(req) : HTTP 502 Bad Gateway.
# }