Motif: an open-source R tool for pattern-based spatial analysis

This is a Preprint and has not been peer reviewed. The published version of this Preprint is available: This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


There are no comments or no comments have been made public for this article.


Download Preprint

Supplementary Files

Jakub Nowosad 


*Context* Pattern-based spatial analysis provides methods to describe and quantitatively compare spatial patterns for categorical raster datasets. It allows for spatial search, change detection, and clustering of areas with similar patterns.
*Objectives* We developed an R package **motif** as a set of open-source tools for pattern-based spatial analysis.
*Methods* This package provides most of the functionality of existing software (except spatial segmentation), but also extends the existing ideas through support for multi-layer raster datasets. It accepts larger-than-RAM datasets and works across all of the major operating systems.
*Results* In this study, we describe the software design of the tool, its capabilities, and present four case studies. They include calculation of spatial signatures based on land cover data for regular and irregular areas, search for regions with similar patterns of geomorphons, detection of changes in land cover patterns, and clustering of areas with similar spatial patterns of land cover and landforms.
*Conclusions* The methods implemented in **motif** should be useful in a wide range of applications, including land management, sustainable development, environmental protection, forest cover change and urban growth monitoring, and agriculture expansion studies.
The **motif** package homepage is



Categorical Data Analysis, Earth Sciences, Ecology and Evolutionary Biology, Environmental Sciences, Life Sciences, Physical Sciences and Mathematics, Statistics and Probability, Terrestrial and Aquatic Ecology


multi-layer similarity, patterns clustering, patterns comparison, query-by-example, similarity search, spatial patterns


Published: 2020-10-17 21:49


CC-By Attribution-ShareAlike 4.0 International