ClassStat2: Calculates landscape class statistics based on the R package...

ClassStat2R Documentation

Calculates landscape class statistics based on the R package "SDMTools"

Description

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.

Usage

ClassStat2(
  inputLayer,
  cellsize = 30,
  bkgd = NA,
  latlon = FALSE,
  na.rm = TRUE,
  FragStats = "all"
)

Arguments

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

logical: Indicates whether or not the inputForestMap object is based on a geographic coordinate system or is projected to a planar coordinate system. In the former case, area is approximated by raster::area.

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.

Value

A raster stack with the two layers per class in the 'classValue' object.

Author(s)

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


mapme-initiative/mapme.forest documentation built on April 15, 2022, 4:50 a.m.