outliers_by_box | R Documentation |
Spatial outlier method that uses distance from a central point to draw a box around a collection of points. The distance to box boundaries is determined from the 90th percentile, or by user input. TODO: add manual center-point option, different xy distances TODO: adjust code for new epsg function
outliers_by_box(pts, pct = NA)
pts |
sf points |
pct |
(optional) quantile to determine distance from center |
list with outlier status and sf polygon
Other outlier functions:
outliers_by_circle()
,
outliers_by_cluster()
,
outliers_by_density()
,
outliers_by_iforest()
,
outliers_by_polygon()
,
spatial_outliers()
data("pdx_breweries") pts <- pdx_breweries$geometry x <- outliers_by_box(pts) plot(pts) plot(pts[x[[1]]==-1], col="red", add=TRUE) plot(x[[2]], add=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.