Learn R Programming

fgeo.analyze (version 1.1.14)

fgeo_topography: Create topography data: convexity, slope, and mean elevation.

Description

Create topography data: convexity, slope, and mean elevation.

Usage

fgeo_topography(elev, ...)

# S3 method for data.frame fgeo_topography( elev, gridsize, xdim = NULL, ydim = NULL, edgecorrect = TRUE, ... )

# S3 method for list fgeo_topography(elev, gridsize, edgecorrect = TRUE, ...)

Arguments

elev

One of these:

  • A dataframe containing elevation data, with columns gx, gy, and elev, or x, y, and elev (e.g. fgeo.x::elevation$col).

  • A ForestGEO-like elevation list with elements xdim and ydim giving plot dimensions, and element col containing a dataframe as described in the previous item (e.g. fgeo.x::elevation).

...

Other arguments passed to methods.

gridsize

Number giving the size of each quadrat for which a habitat is calculated. Commonly, gridsize = 20.

xdim, ydim

(Required if elev is a dataframe) x and y dimensions of the plot.

edgecorrect

Correct convexity in edge quadrats?

Value

A dataframe of subclass fgeo_topography.

Acknowledgment

Thanks to Jian Zhang for reporting a bug (issue 59).

See Also

fgeo_habitat().

Other habitat functions: fgeo_habitat(), tt_test()

Other functions to construct fgeo classes: fgeo_habitat()

Examples

Run this code
# NOT RUN {
assert_is_installed("fgeo.x")

elev_list <- fgeo.x::elevation
fgeo_topography(elev_list, gridsize = 20)

elev_df <- elev_list$col
fgeo_topography(elev_df, gridsize = 20, xdim = 320, ydim = 500)
# }

Run the code above in your browser using DataLab