Skip to content

Commit 0a8fed2

Browse files
committed
doc: miscellaneous minor edits
1 parent be5e0ce commit 0a8fed2

14 files changed

Lines changed: 110 additions & 76 deletions

R/calc_crown_overlay.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#' tree list is assumed to be filtered to the specific set of live trees for
3030
#' one subplot or microplot with the given `sample_radius`.
3131
#'
32+
#' @seealso
33+
#' [calc_tcc_metrics()]
34+
#'
3235
#' @examples
3336
#' # subplot 1 of the `plantation` plot
3437
#' trees <- within(plantation, CRWIDTH <- calc_crwidth(plantation))

R/calc_crwidth.R

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
#' Compute predicted tree crown width using species-specific equations
1+
#' Predict tree crown widths using species-specific equations
22
#'
33
#' `calc_crwidth()` computes tree crown width using species-specific
44
#' regression equations from the literature.
55
#'
66
#' @details
77
#' Crown width is predicted from tree diameter using coefficients provided in
8-
#' the lookup table [cw_coef] (see `?cw_coef` for detailed documentation and
9-
#' references). The method also incorporates adjustment factors used to derive
10-
#' crown width estimates for FIA "saplings", i.e., trees less than 5.0 in.
11-
#' (12.7 cm) diameter but greater than or equal to 1.0 in. (2.54 cm) diameter.
12-
#' Details are described in the documentation for the lookup table
13-
#' [cw_sapling_adj].
8+
#' the lookup table [cw_coef] (see `?cw_coef`) The method also incorporates
9+
#' adjustment factors used to derive crown width estimates for FIA "saplings",
10+
#' i.e., trees less than 5.0 in. (12.7 cm) diameter but greater than or equal
11+
#' to 1.0 in. (2.54 cm) diameter. Details are described in the documentation
12+
#' for the lookup table [cw_sapling_adj].
1413
#'
1514
#' Large diameter trees in the temperate rain forests of the Pacific Northwest
1615
#' region can far exceed the range of diameters in the broadly applicable
17-
#' datasets that have been used to develop crown width prediction equations. To
18-
#' avoid extrapolation beyond the range of the model fitting data in those
19-
#' cases, `calc_crwidth()` makes use of the "old growth" equation presented
20-
#' by Gill et al. (2000) to estimate crown width for nine tree species when
21-
#' their diameter is greater than 50 in. (127 cm).
16+
#' datasets that have been used to develop crown width prediction equations
17+
#' (Bechold 2003, 2004). To avoid extrapolation beyond the range of the model
18+
#' fitting data in those cases, `calc_crwidth()` makes use of the "old growth"
19+
#' equation presented by Gill et al. (2000) to estimate crown width for nine
20+
#' tree species when their diameter is greater than 50 in. (127 cm).
2221
#'
2322
#' @param tree_list A data frame containing tree records. Must have columns
2423
#' `SPCD` (FIA integer species code), `STATUSCD` (FIA integer tree status code,
@@ -30,10 +29,21 @@
3029
#' feet for live trees. `NA` is returned for trees with `STATUSCD != 1`.
3130
#'
3231
#' @references
32+
#' Bechtold, W.A. 2003. Crown-Diameter Prediction Models for 87 Species of
33+
#' Stand-Grown Trees in the Eastern United States. _Southern Journal of Applied
34+
#' Forestry_, 27(4): 269-278.
35+
#'
36+
#' Bechtold, W.A. 2004. Largest-Crown-Width Prediction Models for 53 Species in
37+
#' the Western United States. _Western Journal of Applied Forestry_, 19(4):
38+
#' 245-251.
39+
#'
3340
#' Gill, S.J., G.S. Biging, E.C. Murphy. 2000. Modeling conifer tree crown
3441
#' radius and estimating canopy cover. _Forest Ecology and Management_, 126(3):
3542
#' 405-416.
3643
#'
44+
#' @seealso
45+
#' [cw_coef], [cw_sapling_adj]
46+
#'
3747
#' @examples
3848
#' calc_crwidth(plantation)
3949
#' @export

R/calc_ht_metrics.R

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
#' Calculate stand height metrics
22
#'
33
#' `calc_ht_metrics()` computes several stand height metrics for a given tree
4-
#' list (see Details).
4+
#' list.
55
#'
66
#' @details
77
#' Stand height metrics are based on live trees (`STATUSCD == 1`), and are
88
#' are assigned `0` by definition if no live trees are present. Height metrics
99
#' are returned in a named list with the following elements:
10-
#' * `numTrees`: number of live trees `>= 5.0` in. (`12.7` cm) diameter
11-
#' * `meanTreeHt`: mean height of trees `>= 5.0` in. (`12.7` cm) diameter
12-
#' * `meanTreeHtBAW`: basal-area weighted mean height of trees `>= 5.0` in.
10+
#' * `$numTrees`: number of live trees `>= 5.0` in. (`12.7` cm) diameter
11+
#' * `$meanTreeHt`: mean height of trees `>= 5.0` in. (`12.7` cm) diameter
12+
#' * `$meanTreeHtBAW`: basal-area weighted mean height of trees `>= 5.0` in.
1313
#' (`12.7` cm) diameter
14-
#' * `meanTreeHtDom`: mean height of canopy dominant/co-dominant trees
14+
#' * `$meanTreeHtDom`: mean height of canopy dominant/co-dominant trees
1515
#' `>= 5.0` in. (`12.7` cm) diameter
16-
#' * `meanTreeHtDomBAW`: basal-area weighted mean height of canopy
16+
#' * `$meanTreeHtDomBAW`: basal-area weighted mean height of canopy
1717
#' dominant/co-dominant trees `>= 5.0` in. (`12.7` cm) diameter
18-
#' * `maxTreeHt`: height of the tallest tree `>= 5.0` in. (`12.7` cm) diameter
19-
#' * `predomTreeHt`: predominant tree height, as the mean height of the tallest
18+
#' * `$maxTreeHt`: height of the tallest tree `>= 5.0` in. (`12.7` cm) diameter
19+
#' * `$predomTreeHt`: predominant tree height, as the mean height of the tallest
2020
#' trees `>= 5.0` in. (`12.7` cm) diameter comprising up to `16` trees per
2121
#' acre (`39.5` trees per hectare)
22-
#' * `numSaplings`: number of live saplings (trees `>= 1.0` in. but `< 5.0` in.
22+
#' * `$numSaplings`: number of live saplings (trees `>= 1.0` in. but `< 5.0` in.
2323
#' diameter, i.e., `>= 2.54` cm but `< 12.7` cm)
24-
#' * `meanSapHt`: mean height of saplings
25-
#' * `maxSapHt`: height of the tallest sapling
24+
#' * `$meanSapHt`: mean height of saplings
25+
#' * `$maxSapHt`: height of the tallest sapling
2626
#'
2727
#' For the purpose of height calculations, metrics based on
2828
#' "canopy dominant/co-dominant" include open grown trees, i.e., include trees

R/calc_tcc_metrics.R

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#' Compute predicted canopy cover from individual tree measurements
1+
#' Predict plot-level canopy cover from individual tree measurements
22
#'
33
#' `calc_tcc_metrics()` computes predicted plot-level tree canopy cover (TCC)
44
#' from standard field inventory measurements. By default, a full set of stand
5-
#' structure metrics used to derive the plot-level TCC value are included in the
6-
#' output (see Details).
5+
#' structure variables used to derive the plot-level TCC value are included in
6+
#' the output (see Details).
77
#'
88
#' @details
99
#' This function provides two methods for predicting plot-level TCC.
@@ -17,7 +17,7 @@
1717
#' modeling of the understory sapling contribution to total canopy cover
1818
#' (Toney et al. 2009). The empirical model for the sapling component also uses
1919
#' the spatial point pattern of overstory trees as a predictor variable (using
20-
#' a square root transformation of Ripley's edge-corrected K function, Ripley
20+
#' a square root transformation of Ripley's edge-corrected K-function, Ripley
2121
#' 1977, Stoyan and Penttinen 2000).
2222
#'
2323
#' Alternatively, TCC can be predicted using a simplified approach that does not
@@ -44,20 +44,20 @@
4444
#' variables. Specific elements of the returned list include some or all of the
4545
#' following, conditionally:
4646
#'
47-
#' * `model_tcc`: plot-level predicted canopy cover of trees `>= 1` inch
47+
#' * `$model_tcc`: plot-level predicted canopy cover of trees `>= 1` inch
4848
#' (`2.54` cm) diameter, derived by one of the two methods described above
4949
#' depending on the value given for argument `stem_map = TRUE|FALSE`
5050
#'
5151
#' If the stem-map method is used, then TCC values derived by crown overlay
5252
#' on the individual subplot and microplot boundaries are included, along with
5353
#' means of the four subplot/microplot values:
5454
#'
55-
#' * `subpN_crown_overlay`: estimated canopy cover of trees `>= 5-in.`
55+
#' * `$subpN_crown_overlay`: estimated canopy cover of trees `>= 5-in.`
5656
#' (12.7 cm) diameter in subplot `N` based on crown overlay (`N = 1:4`)
57-
#' * `subp_overlay_mean`: mean of the four subplot crown overlays
58-
#' * `micrN_crown_overlay`: estimated canopy cover of saplings in the microplot
57+
#' * `$subp_overlay_mean`: mean of the four subplot crown overlays
58+
#' * `$micrN_crown_overlay`: estimated canopy cover of saplings in the microplot
5959
#' of subplot `N` based on crown overlay (`N = 1:4`)
60-
#' * `micr_overlay_mean`: mean of the four microplot crown overlays
60+
#' * `$micr_overlay_mean`: mean of the four microplot crown overlays
6161
#'
6262
#' A set of spatial point pattern statistics is also included when the stem-map
6363
#' method is used. A square root transformation of Ripley's K function using
@@ -67,7 +67,8 @@
6767
#' regression model used to estimate the sapling contribution to total tree
6868
#' canopy cover:
6969
#'
70-
#' * `L_rft`: Ripley’s L function at `r` feet (`r` = `6`, `8`, `10`, and `12`)
70+
#' * `$L_rft`: estimates of the L-function at `r` feet (`r` = `6`, `8`, `10`,
71+
#' and `12`)
7172
#'
7273
#' If the argument `full_output = TRUE` (the default), then the output will
7374
#' also include all of the the named elements from the output of
@@ -134,7 +135,7 @@
134135
#' # using the spatially explicit "stem-map model" by default
135136
#' calc_tcc_metrics(plantation)
136137
#'
137-
#' # return only the predicted TCC
138+
#' # return only the predicted TCC value (`$model_tcc`)
138139
#' calc_tcc_metrics(plantation, full_output = FALSE)
139140
#'
140141
#' # using the "FVS method" which assumes random tree locations

R/data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ DEFAULT_TREE_COLUMNS <- c("PLT_CN", "SUBP", "TREE", "AZIMUTH", "DIST",
127127
"cw_sapling_adj"
128128

129129

130-
#' Tree list for a plot in a loblolly pine plantation
130+
#' Pine plantation tree list
131131
#'
132132
#' An example tree list for an FIA plot in a loblolly pine plantation.
133133
#'

R/plot_crowns.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
#' @return
3838
#' The input, invisibly.
3939
#'
40+
#' @seealso
41+
#' [calc_crwidth()], [calc_crown_overlay()]
42+
#'
4043
#' @examples
4144
#' trees <- within(plantation, CRWIDTH <- calc_crwidth(plantation))
4245
#'

R/spatstat_helpers.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#' Analyze the spatial pattern of trees on an FIA plot
22
#'
3-
#' Functions that facilitate point pattern analysis of FIA tree data using the
3+
#' These functions facilitate point pattern analysis of FIA tree data using the
44
#' \pkg{spatstat} library.
55
#'
66
#' @name spatstat_helpers
77
#' @details
88
#' `create_fia_owin()` returns an object of class `"owin"` from the
99
#' \pkg{spatstat} library. This object represents the generic 2-D observation
1010
#' window for the nationally standard FIA plot design which is a four-point
11-
#' cluster of subplots. Used when creating a \pkg{spatstat} point pattern object
12-
#' for an FIA tree list.
11+
#' cluster of circular subplots. Used when creating a \pkg{spatstat} point
12+
#' pattern object for an FIA tree list.
1313
#'
1414
#' `create_fia_ppp()` returns an object of class `"ppp"` representing the point
1515
#' pattern of an FIA tree list in the 2-D plane. A point pattern object defines

man/calc_crown_overlay.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/calc_crwidth.Rd

Lines changed: 22 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/calc_ht_metrics.Rd

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)