ClassStat2 | R Documentation |
ClassStat2 calculates a user defined set of landscape fragmentation indices for patch types identified
in a matrix of data or in a raster of class ’asc’ (SDMTools & adehabitat packages), ’RasterLayer’ (raster package)
or ’SpatialGrid-DataFrame’ (sp package). It is actually used as a helper function
within the FragStatsCalc
function.
It is heavily based on the SDMTools:ClassStat
function.
ClassStat2( inputLayer, cellsize = 30, bkgd = NA, latlon = FALSE, na.rm = TRUE, FragStats = "all" )
inputLayer |
a matrix of data with patches identified as classes (unique integer values) as e.g., a binary lanscape of a species distribution or a vegetation map. Matrix can be a raster of class ’asc’ (adehabitat package), ’RasterLayer’ (raster package) or 'SpatialGridDataFrame“ (sp package). |
cellsize |
cell size (in meters) is a single value representing the width/height of cell edges (assuming square cells). |
bkgd |
the background value for which statistics will not be calculated. |
latlon |
|
na.rm |
Logical if NA values should be removed when calculating the statistics. Defaults to TRUE. |
FragStats |
Character vector list of forest fragmentation parameetrs to be calculated. |
A raster stack with the two layers per class in the 'classValue' object.
Darius Görgen (MapTailor Geospatial Consulting GbR) info@maptailor.net
Maintainer: MAPME-Initiative contact@mapme-initiative.org
Contact Person: Dr. Johannes Schielein
Copyright: MAPME-Initiative
License: GPL-3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.