Vegetation Analysis and Forest Inventory

Provides functions and example datasets for phytosociological analysis, forest inventory, biomass and carbon estimation, and visualization of vegetation data. Includes functions to compute structural parameters [phytoparam(), summary.param(), stats()], estimate above-ground biomass and carbon [AGB()], stratify wood volume by diameter at breast height (DBH) classes [stratvol()], generate collector and rarefaction curves [collector.curve(), rarefaction()], and visualize basal areas on quadrat maps [BAplot(), including rectangular plots and individual coordinates]. Several example datasets are provided to demonstrate the functionality of these tools. For more details see FAO (1981, ISBN:92-5-101132-X) "Manual of forest inventory", IBGE (2012, ISBN:9788524042720) "Manual técnico da vegetação brasileira" and Heringer et al. (2020) "Phytosociology in R: A routine to estimate phytosociological parameters" .


PhytoIn

CRANstatus R-CMD-check License: GPLv3

PhytoIn

Tools for vegetation analysis and forest inventory in R.

PhytoIn provides functions and example datasets for phytosociological analysis, forest inventory, biomass and carbon estimation, and visualization of vegetation data.


Installation

From CRAN (when available)

install.packages("PhytoIn")

Development version (GitHub)

# install.packages("remotes")
remotes::install_github("PhytoIn/PhytoIn")

Overview

Main features:

  • Structural parameters and diversity
    phytoparam(), summary.param(), plot.param()

  • Biomass and carbon
    AGB() — wrapper around BIOMASS for above-ground biomass (AGB), C, and CO₂e

  • Volume stratification
    stratvol() — wood volume by DBH classes

  • Species accumulation and rarefaction
    collector.curve(), rarefaction()

  • Basal area visualization
    BAplot() — basal areas on quadrat maps (supports rectangular plots and individual coords)

Example datasets included: quadrat.df, point.df, quadrat2_plot.df, quadrat2_tree.df, quadrat3_rect.df.


Quick start

Example chunks are not executed when building this README. Run them interactively.

Phytosociological parameters

library(PhytoIn)

res <- phytoparam(
  x = quadrat.df, measure.label = "CBH", taxon = "Species",
  family = "Family", su = "Plot", su.size = 25
)

summary(res)      # S3 summary
plot(res)         # S3 plot
head(res$param)   # Taxon-level table
res$global        # Global metrics

Rarefaction curve

rarefaction(formula = Species ~ Plot - Morta, data = quadrat.df, plot = TRUE)

Collector’s curve

collector.curve(formula = Species ~ Plot - Morta, data = quadrat.df,
                times = 1000, plot = TRUE, theme = "theme_classic")

Biomass and carbon (AGB)

out <- AGB(
  x = quadrat.df, measure.label = "CBH", h = "h", taxon = "Species",
  dead = "Morta", circumference = TRUE, su = "Plot", area = 0.0625,
  rm.dead = TRUE, check.spelling = FALSE, correct.taxon = TRUE, long = TRUE
)

head(out$tree)
out$taxon
out$total
out$WD.level

Note: AGB() uses BIOMASS internally. Internet access is not required;
taxon standardization via TNRS is used only if httr2 is available.

Basal areas on quadrat maps

BAplot(
  formula = CBH ~ x + y, data = quadrat2_plot.df, taxon = "Species",
  circumference = TRUE, quadrat.size = 5, dead = "Morta",
  rm.dead = FALSE, alpha = 0.4, cex.radius = 2,
  legend = TRUE, long = FALSE, ind.coord = FALSE
)

Citation

If you use PhytoIn in scientific work, please cite this package and the underlying methods (e.g., Hurlbert 1971; Heck et al. 1975; Chave et al. 2014).

citation("PhytoIn")

Contributing

Issues and pull requests are welcome:

Please follow a minimal reproducible example (reprex) when reporting bugs.


License

GPL-3 © Rodrigo Augusto Santinelo Pereira


Development notes

This README is generated from README.Rmd. To build:

rmarkdown::render("README.Rmd")

Add to .Rbuildignore:

^README\.Rmd$
^\.github$

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("PhytoIn")

0.2.1 by Rodrigo Augusto Santinelo Pereira, 17 hours ago


https://github.com/PhytoIn/PhytoIn


Report a bug at https://github.com/PhytoIn/PhytoIn/issues


Browse source code at https://github.com/cran/PhytoIn


Authors: Rodrigo Augusto Santinelo Pereira [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports ggplot2, packcircles, BIOMASS, scales, utils, stats

Suggests data.table, httr2, spelling


See at CRAN