spatial_outliers | R Documentation |
A convenience wrapper used to call any of the spatial outlier methods implemented
in spaceheater
.
spatial_outliers(pts, method = "polygon", ...)
pts |
sf points |
method |
which method to use, "box", "circle", "polygon", "density", "cluster", "iforest" |
... |
input parameters specific to individual methods |
list with outlier status and sf polygon
Other outlier functions:
outliers_by_box()
,
outliers_by_circle()
,
outliers_by_cluster()
,
outliers_by_density()
,
outliers_by_iforest()
,
outliers_by_polygon()
data("pdx_breweries") pts <- pdx_breweries$geometry x <- spatial_outliers(pts,method="polygon") 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.