View source: R/point-pattern_std-distance.R
std_distance | R Documentation |
The standard distance of a point pattern is a measure of central tendency. Standard distance measures distance away from the mean center of the point pattern similar to standard deviations.
std_distance(geometry)
geometry |
an sfc object. If a polygon, uses |
A numeric scalar.
Other point-pattern:
center_mean()
# Make a grid to sample from
grd <- sf::st_make_grid(n = c(1, 1), cellsize = c(100, 100), offset = c(0,0))
# sample 100 points
pnts <- sf::st_sample(grd, 100)
# plot points
plot(pnts)
# calculate standard distance
std_distance(pnts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.