Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.43 KB

File metadata and controls

44 lines (34 loc) · 1.43 KB

fieldPlot

fieldPlot provides functions for handling field data in forest inventories based on sample plots. Functionality includes calculating basal area for trees, predicting missing heights using height-diameter models, calculating the number of stems per ha for plots, as well as Lorey's mean height, dominant height, volume per ha and basal area per ha.

Example use

# installation
devtools::install_github("https://github.com/SkogRover/fieldPlot")
library(fieldPlot)

# Example data
trees <- readRDS(
              system.file("extdata",
              "exampleData.Rdata",
              package = "fieldPlot")
                )

# predict missing tree heights
trees$h_complete <- predictMissingHeights(trees$d,
                               trees$h,
                               trees$sp,
                               trees$plotID)

# calculate basal area
trees$ba <- d2ba(trees$d)

# predict tree volumes
trees$vol=taperNOR::volume(dbh=trees$d,
                           h_top=trees$h_complete,
                           sp=trees$sp)

# calculate plot summaries
calcPlotSummaries(d =trees$d,
                  h = trees$h_complete,
                  ba = trees$ba,
                  vol =trees$vol,
                  plotID = trees$plotID,
                  plotArea = 400)

Funding details

The fieldPlot package was developed as part of the project SmartForest, funded by the Research council of Norway (project no. 309671).