Learn R Programming

mlr3spatiotempcv

Package website: release | dev

Spatiotemporal resampling methods for mlr3.

This package extends the mlr3 package framework with spatiotemporal resampling and visualization methods.

If you prefer the tidymodels ecosystem, have a look at the {spatialsample} package for spatial sampling methods.

Installation

CRAN version

install.packages("mlr3spatiotempcv")

Development version

remotes::install_github("mlr-org/mlr3spatiotempcv")

# R Universe Repo
install.packages('mlr3spatiotempcv', mlrorg = 'https://mlr-org.r-universe.dev')

Get Started

See the "Get Started" vignette for a quick introduction.

For more detailed information including an usage example see the "Spatiotemporal Analysis" chapter in the mlr3book.

Article "Spatiotemporal Visualization" shows how 3D subplots grids can be created.

Citation

To cite the package in publications, use the output of citation("mlr3spatiotempcv").

Resources

Other spatiotemporal resampling packages

This list does not claim to be comprehensive.

(Disclaimer: Because CRAN does not like DOI URLs in their automated checks, direct linking to scientific articles is not possible...)

NameLanguageResources
blockCVRCRAN
CASTRPaper, CRAN
ENMevalRCRAN
spatialsampleRCRAN
sperrorestRCRAN
PyspatialmlPythonGitHub
spacvPythonGitHub
Museo ToolboxPythonPaper, GitHub
spatial-kfoldPythonGitHub

FAQ

Copy Link

Version

Install

install.packages('mlr3spatiotempcv')

Monthly Downloads

1,069

Version

2.3.2

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Patrick Schratz

Last Published

November 29th, 2024

Functions in mlr3spatiotempcv (2.3.2)

autoplot_multi_fold_dt

Autoplot helper
autoplot.ResamplingSpCVDisc

Visualization Functions for SpCV Disc Method.
autoplot.ResamplingSpCVEnv

Visualization Functions for SpCV Env Methods.
autoplot.ResamplingSpCVCoords

Visualization Functions for SpCV Coords Methods.
autoplot.ResamplingSpCVTiles

Visualization Functions for SpCV Tiles Method.
mlr_resamplings_repeated_spcv_coords

(sperrorest) Repeated coordinate-based k-means clustering
autoplot.ResamplingSpCVKnndm

Visualization Functions for SpCV knndm Method.
mlr_resamplings_repeated_spcv_block

(blockCV) Repeated spatial block resampling
autoplot.ResamplingSptCVCstf

Visualization Functions for SptCV Cstf Methods.
mlr3spatiotempcv-package

mlr3spatiotempcv: Spatiotemporal Resampling Methods for 'mlr3'
mlr_resamplings_repeated_sptcv_cstf

(CAST) Repeated spatiotemporal "leave-location-and-time-out" resampling
mlr_resamplings_repeated_spcv_disc

(sperrorest) Repeated spatial "disc" resampling
mlr_resamplings_spcv_disc

(sperrorest) Spatial "disc" resampling
mlr_resamplings_repeated_spcv_knndm

(CAST) Repeated K-fold Nearest Neighbour Distance Matching
mlr_resamplings_spcv_block

(blockCV) Spatial block resampling
mlr_resamplings_repeated_spcv_env

(blockCV) Repeated "environmental blocking" resampling
mlr_resamplings_spcv_env

(blockCV) "Environmental blocking" resampling
mlr_resamplings_spcv_buffer

(blockCV) Spatial buffering resampling
mlr_resamplings_repeated_spcv_tiles

(sperrorest) Repeated spatial "tiles" resampling
mlr_resamplings_spcv_coords

(sperrorest) Coordinate-based k-means clustering
mlr_tasks_diplodia

Diplodia Classification Task
strat_sample_folds

Stratified random sampling
mlr_tasks_ecuador

Ecuador Classification Task
mlr_resamplings_sptcv_cstf

(CAST) Spatiotemporal "Leave-location-and-time-out" resampling
mlr_resamplings_spcv_knndm

(CAST) K-fold Nearest Neighbour Distance Matching
mlr_resamplings_spcv_tiles

(sperrorest) Spatial "Tiles" resampling
mlr_tasks_cookfarm_mlr3

Cookfarm Profiles Regression Task
autoplot.ResamplingCV

Visualization Functions for Non-Spatial CV Methods.
TaskRegrST

Create a Spatiotemporal Regression Task
as_task_regr_st.TaskClassifST

Convert to a Spatiotemporal Regression Task
as_task_classif_st

Convert to a Spatiotemporal Classification Task
autoplot.ResamplingSpCVBlock

Visualization Functions for SpCV Block Methods.
autoplot.ResamplingSpCVBuffer

Visualization Functions for SpCV Buffer Methods.
autoplot

Re-export of autoplot
TaskClassifST

Create a Spatiotemporal Classification Task
autoplot.ResamplingCustomCV

Visualization Functions for Non-Spatial CV Methods.
assert_spatial_task

Check spatial task