Learn R Programming

LAD (version 0.1.0)

fitLAD: Fit Leaf Angle Distribution (LAD) from two-parameters (mu, nu) Beta distribution

Description

The function derives both the Leaf Angle Distribution (LAD) and the G-function from two-parameters (mu, nu) Beta distribution.

Value

A list of two elements:

  • dataset: a dataframe with three columns indicating the measured LAD (pdf), the G-function (G), for view or inclination angle (theta).

  • distribution: a vector containing the matched distribution type.

Arguments

mu

Numeric. The mu parameter of the Beta distribution.

nu

Numeric. The nu parameter of the Beta distribution.

plot

Logical. If set to TRUE, it plots the measured and theoretical LAD and G distributions. Default set to FALSE.

Examples

Run this code
fitLAD(0.9,0.9) # uniform LAD distribution
fitLAD(2.8,1.18)# planophile LAD distribution
fitLAD(1.1,1.7, plot=TRUE)# spherical LAD distribution

Run the code above in your browser using DataLab