This function computes the area of the HPD credible set that is as small as possible but just barely includes the cell with the true location (or, if the true location is not actually inluded in the range map, we use the closest cell on the range map to the true location). This operates on a single rasterLayer. To operate on a rasterBrick of posteriors and a data frame of lat-longs, use 'min_hpd_inc_area_df()'.

1 | ```
min_hpd_inclusion_area(M, lat, long)
``` |

`M` |
the posterior surface matrix |

`lat` |
the true latitude |

`long` |
the true longitude |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.