Package: ShapePattern 3.0.1

Tarmo K. Remmel

ShapePattern: Tools for Analyzing Shapes and Patterns

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) <doi:10.1111/cag.12222>, (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) <doi:10.1007/s10980-013-9905-x>, (4) counting the number of each first-order pattern element and converting that information into both frequency and empirical probability vectors (Remmel 2020) <doi:10.3390/e22040420>, and (5) computing the porosity of raster patches <doi:10.3390/su10103413>. 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.

Authors:Tarmo K. Remmel [aut, cre], Marie-Josee Fortin [ctb], Ferenc Csillag [ctb], Sandor Kabos [ctb]

ShapePattern_3.0.1.tar.gz
ShapePattern_3.0.1.tar.gz(r-4.5-noble)ShapePattern_3.0.1.tar.gz(r-4.4-noble)
ShapePattern_3.0.1.tgz(r-4.4-emscripten)ShapePattern_3.0.1.tgz(r-4.3-emscripten)
ShapePattern.pdf |ShapePattern.html
ShapePattern/json (API)
NEWS

# Install 'ShapePattern' in R:
install.packages('ShapePattern', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • data - This is a generic data environment that provides some demo data and control functionality.

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

16 exports 0.00 score 36 dependencies 5 scripts 273 downloads

Last updated 1 years agofrom:75fdec13af. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-linuxOKSep 15 2024

Exports:build.lutbuildsurfsCARsimudoubleplotterfindcolfindrowimaksKLPQpatternbitsporositysinglemapsingleplotterssrsurfplotwiwtest.run

Dependencies:clicolorspacecpp11fansifarverggplot2gluegtableigraphisobandlabelinglandscapemetricslatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6rasterRColorBrewerRcppRcppArmadillorlangscalesspterratibbleutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Tools for Analyzing Shapes and PatternsShapePattern-package ShapePattern
Bias correction lookup table (LUT) builder based on simulations.build.lut
Build an array of surfaces across compositional and configuration analysis space.buildsurfs
This function simulates an image using a FFT implementation of a Conditional Autoregressive (CAR) model.CARsimu
This is a generic data environment that provides some demo data and control functionality.data
A comparison of two maps based on their empirical (null) distributions for a class-focused pattern metricdoubleplotter
An internal utility that identifies that identifies the appropriate column of the Whittle correction matrix.findcol
An internal utility that identifies that identifies the appropriate row of the Whittle correction matrix.findrow
Draws a matrix in the proper orientation, as it it were a raster landscape.imaks
Computes and returns the Kullback-Leibler divergence between two probability distributionsKLPQ
Decompose a binary landscape (grid) to count its pattern elementspatternbits
Compute the porosity of raster zones (patches)porosity
Process a single binary mapsinglemap
Depict the empirical (null) distribution for class-focused pattern metrics.singleplotter
Decompose a planar shape (polygon) to produce area, perimeter, and number of parts spectrassr
Produce graphic plots providing class-focused pattern metric context for a landcape mapsurfplot
An internal utility that helps with the Whittle estimation.wi
Whittle estimation for binary mapwtest.run