fieldAUC: Area Under the Curve

View source: R/fct_fieldAUC.R

fieldAUCR Documentation

Area Under the Curve

Description

Calculate the area under the curve given by vectors of xy-coordinates.

Usage

fieldAUC(
  data,
  trait,
  keep.columns = c("NAME", "ROW", "RANGE"),
  method = "trapezoid",
  x.start = 0,
  y.start = 0,
  frame = "long"
)

Arguments

data

data table from fieldInfo.

trait

one or more traits to be evaluated.

keep.columns

columns names to be maintained in the output dataset.

method

the type of interpolation. Can be "trapezoid" (default), "step", "linear" or "spline". More information on ??DescTools::AUC.

x.start

value of x to start the AUC (default is 0 days after planting).

y.start

value of y to start the AUC (default is 0).

frame

format of output data. "long" is used for AUC values on the 1st column and traits ID on the2nd column. While "wide" is for objects with dimension n \times m where traits must be in columns and plots/sample in rows.

Details

fieldAUC

Value

A list with a data frame with values by plot and experimental field image with format stack.


OpenDroneMap/FIELDimageR documentation built on May 4, 2024, 4:24 a.m.