Description Usage Arguments Value Examples
For a set of x and y coordinates, find the distance to the nearest neighbour. Extremely isolated points (outliers) are defined in the same way as in a boxplot: any points whose nearest-neighbour distance lies more than 1.5 x the IQR above the third quartile.
1 | filter.by.distance(pts, plot = F)
|
pts |
A two-column matrix containing the coordinates of the points to be compared. |
plot |
Boolean indicator: should the new set of features be displayed on a plot? |
A Boolean array of length n that can be used to filter points or angles. TRUE indicates that the point is particularly remote from its nearest neighbours; FALSE indicates that point is relatively close to its neighbours.
1 | nn.filter <- filter.by.distance(centres, plot = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.