Computes the empirical semivariogram in distance bins for visual assessment of remaining spatial structure in residuals.
Arguments
- object
A fitted model, or a numeric vector of residuals
- coords
N x 2 coordinate matrix (required)
- n_bins
Number of distance bins (default 15)
- max_dist
Maximum distance (default: half the maximum pairwise distance)
- resid_type
Residual type if extracting from model (default
"pearson")- x
A
tulpa_variogramtable.- ...
Passed to
graphics::plot()byplot()and toprint()byprint().
Value
A tulpa_variogram data.frame with columns dist, gamma, n_pairs
plot() draws the semivariance against distance, point size scaled
by the pair count, and returns x invisibly.