[MORPHMET] % of overlap of convex hulls in 2D scatterplots

2018-08-21 Thread alcardini
Dear All, please, does anyone know if there's an R script or package to compute the exact % of overlap of convex hulls in 2D scatterplots? I found something but was developed for high dimensional spaces and seems to compute that using an approximation. In 2D it should not be too difficult to get

Re: [MORPHMET] % of overlap of convex hulls in 2D scatterplots

2018-08-21 Thread Mike Collyer
Andrea, There are two ways to do this, one precise and one less precise. The less precise method is to calculate the convex hull areas of three hulls: the two of interest and one comprising the points of both. Subtract the total area of the comprehensive hull from the sum of the two groups