Description Usage Arguments Details Value Author(s) References See Also Examples
Fits all distributions, returns an object of a special class. Prints nicely to show the statistic of the fit, and which one is the 'best fit'.
1 2 3 | fitalldistributions(angles, fitmethod = "loglik",
distributions = c('twoparbeta', 'ellipsoid', 'rotatedell', 'planophile',
'erectophile', 'plagiophile', 'extremophile', 'spherical', 'uniform'), ...)
|
angles |
Vector of angles (0 - 90 degrees) |
fitmethod |
'loglik' or 'chisq'. |
distributions |
By default, all implemented distributions. |
... |
Further parameters to ftheta (none as of now). |
In most cases, the two-parameter beta distribution provides the best fit, because of greater flexibility.
Object of class angledistlist, which has print and plot methods.
Remko Duursma
Wang W.M., Li Z.L. & Su H.B. (2007). Comparison of leaf angle distribution functions: Effects on extinction coefficient and fraction of sunlit foliage. Agricultural and Forest Meteorology, 143, 106-122.
1 2 3 4 5 6 7 8 9 | # Built-in example data
data(eteret)
# Fit all built-in distributions:
fit1 <- fitalldistributions(eteret)
fit1
# Plot one of the fitted distributions:
plot(fit1$allfits$planophile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.