tree_coordinates: Calculate tree coordinates.

Usage Arguments Value Author(s) See Also Examples

View source: R/LandClimTools.R

Usage

1
  tree_coordinates(file, a = 25, biomasslargetrees = 10, decade = 30, oldtrees = NULL, silent = TRUE)

Arguments

file

LandClim output file, e.g. fullOut_30.csv.

a

Resolution of LandClim cells in meters, e.g. 25.

biomasslargetrees

Biomass in tons. Trees larger than the given value will be placed on a wider grid than the others.

decade
oldtrees

Optional. Tree coordinates created by the same function, but "before" to preserve ids and coordinates.

silent

TRUE/FALSE

Value

Data frame with coordinates for trees, ready to use in plot_forest.

Author(s)

Klara Dolos

See Also

plot_forest

Examples

1
2
3
4
5
trees <- tree_coordinates(file=system.file("fullOut_50.csv", package = "LandClimTools"), a=25)

### Function also creates tree ID for su
## oldtrees <- tree_coordinates(file=paste(path, "fullOut_49.csv", sep=""), a=25, decade=39, oldtrees=NULL)
## trees <- tree_coordinates(file=paste(path, "fullOut_50.csv", sep=""), a=25, decade=40, oldtrees=oldtrees)

KDolos/LandClimTools documentation built on March 22, 2018, 2:31 p.m.