Spatial Tessellation, Modelling, and Cross-Validation Toolkit


[Up] [Top]

Documentation for package ‘spatialkit’ version 3.0.0

Help Pages

area_of_applicability Mark where a model's predictions apply
assign_features_to_polygons Assign features to cells and attach a cell ID
build_tessellation Build Voronoi, triangle, hex or square cells from points
cell_values_at Read cell values at new locations
clear_fitted_cache Clear the cached fitted values of a Bayesian GP fit
clear_grid_cache Clear the in-session grid cache
clip_target_for Build the area to tessellate within, from points or a boundary
coef.bayesian_fit Extract the coefficients of a fitted model
coef.gwr_fit Extract the coefficients of a fitted model
coef.rf_fit Extract the coefficients of a fitted model
coerce_to_points Reduce each geometry to one representative point
compare_models Compare fitted models in sample
compare_models_cv Compare models on the same cross-validation folds
create_grid_polygons Create square or hexagonal grid polygons over a boundary
create_grid_polygons_cached Create and cache grid polygons over a boundary
create_voronoi_polygons Build Voronoi cells around points
cv_bayes Cross-validate a Bayesian GP with spatial folds
cv_block_size_sweep Cross-validate at a ladder of block sizes
cv_gwr Cross-validate a GWR with spatial folds
cv_rf Cross-validate a random forest with spatial folds
cv_spatial Cross-validate any learner with spatial folds
determine_optimal_levels Choose a cell count from the elbow of the k-means WSS curve
ensure_projected Project an sf object to a CRS suited to its extent
ensure_stable_poly_id Give cells IDs that follow their position
estimate_sac_range Estimate the spatial autocorrelation range from data
evaluate_insample Compute the metrics of several fitted models
fitted.bayesian_fit Extract the fitted values of a fitted model
fitted.gwr_fit Extract the fitted values of a fitted model
fitted.rf_fit Extract the fitted values of a fitted model
fit_bayesian_spatial_model Fit a Bayesian Gaussian-process regression with brms
fit_gwr_model Fit a geographically weighted regression (GWR)
fit_rf_model Fit a random forest with ranger
fold_separation Measure how far the held-out points sit from their training data
get_voronoi_seeds Place seeds for a Voronoi tessellation
gp_lengthscale_bounds Compute length-scale bounds for a squared-exponential GP
gwr_model_selection Select GWR predictors by forward selection on AICc
harmonize_crs Bring two spatial objects to one CRS
kriging_adequacy Check whether block kriging would improve cell means
make_folds Create spatial cross-validation folds
model_metrics Compute goodness-of-fit metrics for a fitted model
model_metrics.spatial_fit Compute goodness-of-fit metrics for a fitted model
new_spatial_fit Build a spatial_fit object for a backend of your own
plot.aoa Plot the dissimilarity distribution behind an area of applicability
plot.block_size_sweep Cross-validate at a ladder of block sizes
plot.feature_selection Plot the path of a forward feature selection
plot.gwr_model_selection Plot a GWR model selection
plot.resolution_profile Plot a resolution profile
plot.sac_range Plot an estimated spatial autocorrelation range
plot.spatial_fit Plot a fitted spatial model
plot_calibration Plot the interval calibration of a Bayesian cross-validation
plot_cv_metrics Plot one cross-validation metric fold by fold
plot_folds Map a cross-validation fold scheme
plot_tessellation_map Plot a tessellation map with optional boundary, seeds, and features
predict.bayesian_fit Predict from a fitted model
predict.gwr_fit Predict from a fitted model
predict.rf_fit Predict from a fitted model
predict_surface Predict a fitted model onto a regular grid
prep_model_data Prepare an sf layer for model fitting
print.aoa Print an area-of-applicability result
print.gwr_model_selection Select GWR predictors by forward selection on AICc
print.morans_i Print a residual Moran's I result
print.resolution_profile Score candidate cell counts on several criteria
print.rf_fit Print a fitted model
print.sac_range Estimate the spatial autocorrelation range from data
print.spatial_fit Print a fitted model
residuals.bayesian_fit Extract the residuals of a fitted model
residuals.gwr_fit Extract the residuals of a fitted model
residuals.rf_fit Extract the residuals of a fitted model
residual_morans_i Test the residuals of a fitted model for spatial autocorrelation
resolution_profile Score candidate cell counts on several criteria
sac_nugget Extract the nugget of an estimated autocorrelation range
select_features_forward Select predictors by forward selection on spatial folds
select_resolution Choose a cell count from a resolution profile
spatialkit-conditions Warnings and errors the package raises
spatialkit-geometry How input geometry is read
spatialkit-options Options that bound the work of a search or a fit
spatialkit_quiet Turn the console log off or on
spatial_fit-coef Extract the coefficients of a fitted model
spatial_fit-fitted Extract the fitted values of a fitted model
spatial_fit-predict Predict from a fitted model
spatial_fit-residuals Extract the residuals of a fitted model
summarize_by_cell Summarise assigned points by cell, with standard errors and pooled values
summary.resolution_profile Compare every criterion's pick on a resolution profile
summary.spatial_fit Summarise a fitted model
voronoi_seeds_kmeans Place seeds at k-means cluster centres
voronoi_seeds_random Place seeds at random inside a boundary
[.spatialkit_rows Subset a layer that carries a row record