phytoparam: Estimate phytosociological parameters and diversity indices

View source: R/phytoparam.R

phytoparamR Documentation

Estimate phytosociological parameters and diversity indices

Description

Estimate the phytosociological parameters and the Shannon–Wiener, Pielou, and Simpson diversity indices, using the quadrat or the point-centered quarter methods.

Usage

phytoparam(
  x,
  measure.label = NULL,
  h = "h",
  taxon = "taxon",
  family = "family",
  dead = "dead",
  circumference = TRUE,
  su = "quadrat",
  height = TRUE,
  quadrat = TRUE,
  su.size,
  d = "distance",
  shape.factor = 1,
  rm.dead = FALSE,
  check.spelling = TRUE
)

Arguments

x

A data.frame containing the community sample data. See 'Details'.

measure.label

Name of the column representing the circumference/diameter at breast height. If omitted the function assumes the default names "cbh" or "dbh" for circumference or diameter at breast height, respectively (see circumference).

h

Name of the column representing trunk height. Default is "h".

taxon

Name of the column representing the sampled taxa. Default is "taxon". Use UTF-8 encoding; accents and special characters are not allowed.

family

Name of the column representing the family names of the sampled taxa. Default is "family". Used to calculate the number of individuals and number of species per family. If you do not want these parameters, set family = NA. Use UTF-8 encoding; accents and special characters are not allowed.

dead

String used to identify dead individuals. Default is "dead".

circumference

Logical. If TRUE (default) circumference at breast height was measured; otherwise "dbh" is assumed.

su

Name of the column representing the sample-unit identifier. Default is "quadrat" for the quadrat method and "point" for the point-centered quarter method.

height

Logical. If FALSE (default) trunk volume is not calculated.

quadrat

Logical. If TRUE (default) data were sampled using the quadrat method; if FALSE, the point-centered quarter method is assumed.

su.size

Numeric scalar giving the quadrat area (m^2); required only if quadrat = TRUE.

d

Name of the column representing the point-to-tree distance; required only if quadrat = FALSE. Default is "distance".

shape.factor

Numeric value between in 0 and 1, indicating the trunk shape. Value 1 assumes a perfect cylinder.

rm.dead

Logical. If FALSE (default) phytosociological parameters for dead individuals are calculated.

check.spelling

Logical. If TRUE (default) taxon names are checked for misspelling.

Details

The function estimates phytosociological parameters for tree communities sampled by quadrat or point-centered quarter methods (quadrat = TRUE or FALSE, respectively).

For the quadrat method, x must contain columns for sample-unit labels, taxon names, and "cbh" or "dbh" measurements for each sampled tree. Additionally, trunk height and family can be included to estimate volume and family-level parameters.

For the point-centered quarter method, x must contain (in addition to the mandatory quadrat columns) a column for the distance from the point to each individual.

The "cbh"/"dbh" column accepts multiple-stem notation, e.g. "17.1+8+5.7+6.8". The plus sign delimits stems. Decimal delimiter may be period or comma; spaces around "+" are ignored. Column names in x are coerced to lowercase at runtime, making matching case-insensitive. If x contains the default column names, the arguments h, taxon, family, dead, su and d can be omitted.

Unbiased absolute density for the point-centered quarter method follows Pollard (1971) and Seber (1982).

Measurement units: individual "cbh"/"dbh" in centimeters; trunk height and point-to-individual distance in meters.

Value

An object of class param with two or four data frames:

  • data: A data.frame containing the original community sample data, added with a column of the individual basal area (ABi).

  • global: total parameters and diversity indices. Sampled area in hectares (ha), total density in individuals/ha, total dominance in m^2 ha^{-1} (basal area) or m^3 ha^{-1} (volume, when computed), and Shannon–Wiener H' in nats/individual (natural log).

  • param: taxon-level table with observed number of individuals (N), absolute/relative density (ADe, RDe), absolute/relative frequency (AFr, RFr), absolute/relative dominance (ADo, RDo), absolute/relative volume (AVol, RVol), Importance Value Index (IV), and Cover Value Index (CV). Absolute parameters per hectare; relative parameters in percentage.

  • family: If family != NA, a table listing the number of individuals and the number of species per family is presented.

  • vars: A list containing objects used in the functions AGB, stats and stratvol.

References

Pollard, J. H. (1971). On distance estimators of density in randomly distributed forests. Biometrics, 27, 991–1002.

Seber, G. A. F. (1982). The Estimation of Animal Abundance and Related Parameters. New York: Macmillan, pp. 41–45.

See Also

summary.param, plot.param

Examples

## Quadrat method
quadrat.param <- phytoparam(
  x = quadrat.df, measure.label = "CBH", taxon = "Species",
  dead = "Morta", family = "Family", circumference = TRUE, su = "Plot",
  height = TRUE, su.size = 25, rm.dead = FALSE
)
summary(quadrat.param)
head(quadrat.param$data)
quadrat.param$global
quadrat.param$family
quadrat.param$param

## Point-centered quarter method
point.param <- phytoparam(
  x = point.df, measure.label = "CBH", taxon = "Species",
  dead = "Morta", family = "Family", circumference = TRUE, su = "Point",
  height = TRUE, quadrat = FALSE, d = "Distance", rm.dead = FALSE
)
summary(point.param)
head(point.param$data)
point.param$global
point.param$family
point.param$param

## Using default column names
point.default <- point.df
colnames(point.default) <- c("point", "family", "taxon", "distance", "cbh", "h")
point.param.default <- phytoparam(
  x = point.default, dead = "morta",
  circumference = TRUE, height = TRUE, quadrat = FALSE
)
summary(point.param.default)
point.param.default$global

## Plotting
plot(quadrat.param)
plot(point.param)
plot(point.param, theme = "theme_light")
plot(point.param, theme = "theme_bw")
plot(point.param, theme = "theme_minimal")


PhytoIn documentation built on Nov. 5, 2025, 5:47 p.m.