Example II
This map plots this mean per-cell posterior extirpation likelihood for Crassula connata over both historical and potential habitat.
cracon_accepted_sf <- st_read("Analysis_outputs/Crassula connata_Solow_low.shp", quiet=TRUE)
# Filter for region
# Convert from mean likelihood of presence to mean likelihood of extirpation
cracon_accepted_sf$mean_ep <- 1 - cracon_accepted_sf$mean
pal <- colorNumeric(palette = "viridis", domain = range(c(0, cracon_accepted_sf$mean_ep), na.rm = TRUE))
m <- leaflet(data = cracon_accepted_sf) %>%
# Add a Tiles layer to the map
addProviderTiles("Esri.WorldImagery") %>%
# Add the grid layer to the map
addPolygons(fillColor = ~pal(mean_ep), fillOpacity = 0.8,
color = "#BDBDC3", weight = 1) %>%
# Add a legend
addLegend(pal = pal, values = c(0, max(cracon_accepted_sf$mean_ep, na.rm = TRUE)),
opacity = 0.8, title = "Mean likelihood of extirpation")
# Print the map
mThis produces posterior regional statistics for extirpation across all habitat as follows:
These show the computed parameters of the posterior beta distribution for extirpation expressed in two different forms - the standard (alpha, beta) representation and (mu, var) as parameters for the central estimate for sighting probability and its dispersion. Confidence bands are placed for this at [73.7%, 100.0%].
Here is this posterior distribution graphed out - whilst the most probable extirpation value is 100% because of the folded nature of the beta distribution, this is a more dispersed distribution than that for historical habitat and the central estimate of extirpation probability is 89.1%.