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

Description Usage Arguments Value Acknowledgment Author(s) See Also Examples

View source: R/fgeo_topography.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
fgeo_topography(elev, ...)

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

## S3 method for class '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).

Author(s)

This function wraps code by Richard Condit.

See Also

fgeo_habitat().

Other habitat functions: fgeo_habitat(), tt_test()

Other functions to construct fgeo classes: fgeo_habitat()

Examples

1
2
3
4
5
6
7
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)

fgeo.analyze documentation built on Dec. 5, 2020, 9:06 a.m.