Filter smoothed stress field containing a range of search radii or kernel
half widths to find shortest wavelength (R) with the least circular sd. or
dispersion (or any statistic) for each coordinate, respectively.
Usage
compact_grid(x, type = c("stress", "dispersion"))
compact_grid2(x, ..., FUN = min)
Value
sf object
Arguments
x
output of stress2grid(), PoR_stress2grid(),
stress2grid_stats(), or kernel_dispersion()
type
character. Type of the grid x. Either "stress" (when input
is stress2grid() or PoR_stress2grid()) or "dispersion" (when input
is kernel_dispersion()).
...
<tidy-select> One unquoted expression separated by
commas. Variable names can be used as if they were positions in the data
frame. Variable must be a column in x.
FUN
function is used to aggregate the data using the search radius
R. Default is min().
data("san_andreas")
res <- stress2grid(san_andreas)
compact_grid(res)
if (FALSE) {
res2 <- stress2grid_stats(san_andreas)
compact_grid2(res2, var, FUN = min)
}