Description Usage Arguments Value

This function calculates overlap between two hypervolumes

1 2 | ```
overlapMBH(hv1, hv2, overlap = TRUE, plot = TRUE, dims = c(1, 2),
col1 = "black", col2 = "blue", proppoints = 1, ndraws = 999)
``` |

`hv1` |
Fitted MBH model |

`hv2` |
Fitted MBH model |

`overlap` |
Logical. Do you want to calculate overlap? This can be very slow |

`plot` |
Logical. Do you want to plot overlap? |

`dims` |
Dimensions to plot |

`col1` |
Colour to use for first hypervolume |

`col2` |
Colour to use for second hypervolume |

`proppoints` |
Number of points to sample from each hypervolume calculated as a proportion of the total volume of each hypervolume. Defaults to 1 but consider reducing to reduce computation time |

`ndraws` |
Number of draws from multivariate normal used in overlap calculation. Defaults to 999. Reducing the number of draws will reduce computational time but will also reduce precision of the overlap estimate. |

Utilises a simulation based approach to calculate overlap by simulating a number of points from each hypervolume. Returns an overlap statistic defined by total number of points shared divided by total number of points simulated. The density of points in each hypervolume is kept constant. Can be very slow for large hypervolumes, both proppoints and ndraws could be reduced for faster computation but larger values will give more precise estimates.

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.