spatial_outliers: Spatial outliers

View source: R/spaceout.R

spatial_outliersR Documentation

Spatial outliers

Description

A convenience wrapper used to call any of the spatial outlier methods implemented in spaceheater.

Usage

spatial_outliers(pts, method = "polygon", ...)

Arguments

pts

sf points

method

which method to use, "box", "circle", "polygon", "density", "cluster", "iforest"

...

input parameters specific to individual methods

Value

list with outlier status and sf polygon

See Also

Other outlier functions: outliers_by_box(), outliers_by_circle(), outliers_by_cluster(), outliers_by_density(), outliers_by_iforest(), outliers_by_polygon()

Examples

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)

nhoteling/spaceheater documentation built on Sept. 24, 2022, 3:04 p.m.