Learn R Programming

ShapePattern (version 3.1.0)

Tools for Analyzing Shapes and Patterns

Description

This is an evolving and growing collection of tools for the quantification, assessment, and comparison of shape and pattern. This collection provides tools for: (1) the spatial decomposition of planar shapes using 'ShrinkShape' to incrementally shrink shapes to extinction while computing area, perimeter, and number of parts at each iteration of shrinking; the spectra of results are returned in graphic and tabular formats (Remmel 2015) , (2) simulating landscape patterns, (3) provision of tools for estimating composition and configuration parameters from a categorical (binary) landscape map (grid) and then simulates a selected number of statistically similar landscapes. Class-focused pattern metrics are computed for each simulated map to produce empirical distributions against which statistical comparisons can be made. The code permits the analysis of single maps or pairs of maps (Remmel and Fortin 2013) , (4) counting the number of each first-order pattern element and converting that information into both frequency and empirical probability vectors (Remmel 2020) , and (5) computing the porosity of raster patches . NOTE: This is a consolidation of existing packages ('PatternClass', 'ShapePattern') to begin warehousing all shape and pattern code in a common package. Additional utility tools for handling data are provided and this package will be added to as more tools are created, cleaned-up, and documented. Note that all future developments will appear in this package and that 'PatternClass' will eventually be archived.

Copy Link

Version

Install

install.packages('ShapePattern')

Monthly Downloads

228

Version

3.1.0

License

GPL-3

Maintainer

Tarmo K Remmel

Last Published

December 10th, 2024

Functions in ShapePattern (3.1.0)

imaks

Draws a matrix in the proper orientation, as it it were a raster landscape.
build.lut

Bias correction lookup table (LUT) builder based on simulations.
KLPQ

Computes and returns the Kullback-Leibler divergence between two probability distributions
CARsimu

This function simulates an image using a FFT implementation of a Conditional Autoregressive (CAR) model.
doubleplotter

A comparison of two maps based on their empirical (null) distributions for a class-focused pattern metric
buildsurfs

Build an array of surfaces across compositional and configuration analysis space.
singleplotter

Depict the empirical (null) distribution for class-focused pattern metrics.
patternbits

Decompose a binary landscape (grid) to count its pattern elements
ssr

Decompose a planar shape (polygon) to produce area, perimeter, and number of parts spectra
wtest.run

Whittle estimation for binary map
porosity

Compute the porosity of raster zones (patches)
surfplot

Produce graphic plots providing class-focused pattern metric context for a landcape map
singlemap

Process a single binary map
wi

An internal utility that helps with the Whittle estimation.
data

This is a generic data environment that provides some demo data and control functionality.
findrow

An internal utility that identifies that identifies the appropriate row of the Whittle correction matrix.
findcol

An internal utility that identifies that identifies the appropriate column of the Whittle correction matrix.
ShapePattern-package

tools:::Rd_package_title("ShapePattern")