extract_variables {medfateland}R Documentation

Landscape variables

Description

Extract or estimate variables from landscape objects (class 'sf').

Usage

extract_variables(x, vars = "land_cover_type", SpParams = NULL, ...)

plot_variable(x, variable = "land_cover_type", SpParams = NULL, r = NULL, ...)

Arguments

x

An object of class sf with the appropriate columns.

vars

A string vector with the name of the variables to extract (see details).

SpParams

A data frame with species parameters (see SpParamsMED), required for most forest stand variables.

...

Additional arguments (not used).

variable

A string with the name of the variables to draw (see details).

r

An object of class SpatRaster, defining the raster topology.

Details

The following string values are available for vars.

Topography:

Soil:

Watershed:

Forest stand:

Value

Function extract_variables() returns an object of class sf with the desired variables. Function plot_variables() returns a ggplot object.

Author(s)

Miquel De Cáceres Ainsa, CREAF.

See Also

forest, soil, summary.forest, shinyplot_land

Examples

# Load data and species parameters from medfate
data(example_ifn)
data(SpParamsMED)
  
# Calculate basal area and leaf area index
# for all forest stands
extract_variables(example_ifn, vars = c("basal_area", "leaf_area_index"),
                  SpParams = SpParamsMED)
                  

[Package medfateland version 2.4.5 Index]