Generate the curve of a forest's average tree using the Kozak taper model
Generate a ggplot curve of a forest's average tree using the Kozak taper model (Kozak, Munro and Smith, 1969).
average_tree_curve( df, d, dbh, h, th, facet = NA, color = NA, mirror = TRUE, eq = TRUE )
df |
A data frame. |
d |
Quoted name of the section diameter variable, in cm. |
dbh |
Quoted name of the diameter at breast height variable, in cm. |
h |
Quoted name of the section height variable, in meters. |
th |
Quoted name of the total height variable, in meters. |
facet |
Optional argument. If supplied with the Quoted name of a factor variable(s), this variable is used to divide the plot into facets. Default: |
color |
Quoted name of a variable. If supplied, this variable will be used to classify the data by color. Default: |
mirror |
if |
eq |
if |
A ggplot object.
Sollano Rabelo Braga sollanorb@gmail.com
Kozak, A., Munro, D. D. and Smith, J. H. G. (1969) Taper Functions and their Application in Forest Inventory, The Forestry Chronicle, 45, pp. 278–283.
library(forestmangr)
data("exfm7")
exfm7
# Get the data's average tree curve inserting the section diameter and height, total height
# and dbh variables:
average_tree_curve(df = exfm7, d = "di_wb", dbh = "DBH", h = "hi", th = "TH")
# It's possible to get the average tree curve of each strata with the facet argument,
# and divide the data by color with the color argument:
average_tree_curve(df=exfm7,d="di_wb",dbh="DBH",h="hi",th="TH",facet="STRATA",color="GENCODE")Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.