You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.Rmd
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ The Forest Inventory and Analysis Program ([FIA](https://research.fs.usda.gov/pr
32
32
* mapping erosion risk [[11]](#references)
33
33
* assessment of tree canopy cover estimation methods [[12, 13]](#references)
34
34
35
-
Analysis or computation based on the tree spatial pattern within a plot require input data with coordinates of individual stems given as azimuth and distance from the sample center point. Note that FIA no longer provide `AZIMUTH` and `DIST` attributes in the publicly available FIADB `TREE` table. The FIADB User Guide states that these attributes are now available by request from [FIA Spatial Data Services](https://research.fs.usda.gov/programs/fia/sds)[[14]](#references). Tree data without stem locations can still be used in**FIAstemmap** for certain functionality, which includes predicting individual tree crown width and computing several stand structure metrics.
35
+
Computations based on tree spatial pattern within a plot require input data with coordinates of the individual stems given as azimuth and distance from the sample center point. Note that FIA no longer provide the `AZIMUTH` and `DIST` attributes in the publicly available `TREE` table. The FIADB User Guide states that these attributes are now available by request from [FIA Spatial Data Services](https://research.fs.usda.gov/programs/fia/sds)[[14]](#references). Tree data lacking stem locations can be used with**FIAstemmap** for certain functionality, which includes predicting individual tree crown width and computing several stand structure metrics.
The data frame `cw_coef`provides a curated set of linear regression coefficients for predicting crown width from stem diameter of tree species in the conterminous US (see `?cw_coef`). The crown width prediction method also addresses potential issues in cases of extrapolation beyond the range of the model fitting data. Details are given in the documentation for `calc_crwidth()`. Input is a data frame of tree records which must have columns `SPCD` (FIA integer species code), `STATUSCD` (FIA integer tree status code, `1` = live) and `DIA` (FIA tree diameter in inches), here using the `plantation` example tree list.
50
+
The data frame `cw_coef`contains a curated set of linear regression coefficients for predicting crown width from stem diameter of tree species in the conterminous US (see `?cw_coef`). The method for crown width prediction attempts to avoid extrapolation beyond the range of the model fitting data by providing reasonable fall backs for the obvious cases. Details are given in the documentation for `calc_crwidth()`. The input is a data frame of tree records which must have columns `SPCD` (FIA integer species code), `STATUSCD` (FIA integer tree status code, `1` = live) and `DIA` (FIA tree diameter in inches). The `plantation`dataset used here is an example tree list included in the package.
51
51
52
52
```{r predict-crwidth}
53
53
library(FIAstemmap)
54
54
55
-
# regression coefficients for estimating tree crown width from diameter
56
-
# ?cw_coef
55
+
# included regression coefficients for estimating tree crown width from diameter
56
+
# see `?cw_coef`
57
57
head(cw_coef)
58
58
59
-
# add predicted crown widths to the `plantation` tree list
60
-
# `within()` to modify only a copy of the example dataset
59
+
# add a column predicted crown widths to the `plantation` tree list
60
+
# `within()` is used to modify only a copy of the example dataset
Plot-level visualization and other exploratory analyses require input data with stem locations provided in columns `AZIMUTH` (horizontal angle from subplot/microplot center to the stem location, in range `0:359`) and `DIST` (stem distance from subplot/microplot center).
67
+
Plot-level visualization and other exploratory analyses require input data with individual stem locations given in columns named `AZIMUTH` (horizontal angle from subplot/microplot center, `0:359`) and `DIST` (distance from subplot/microplot center).
68
68
69
69
```{r plot-crowns}
70
70
# display modeled tree crowns projected vertically on the FIA plot boundary
Helper functions are provided to facilitate analysis of FIA tree lists as Spatial Point Patterns using the **spatstat** library. `create_fia_ppp()` returns an object of class `"ppp"` representing the point pattern of an FIA tree list in the 2-D plane. This object can be used with functions of package **spatstat.explore**for additional plotting capability, computation of descriptive spatial statistics, and other exploratory data analysis.
82
+
Helper functions facilitate the analysis of FIA tree lists as Spatial Point Patterns using the **spatstat** library. `create_fia_ppp()` returns an object of class `"ppp"` representing the point pattern of an FIA tree list in the 2-D plane. This object can be used with functions of **spatstat.explore**which provide additional plotting capabilities, computation of descriptive spatial statistics, and other exploratory data analysis.
83
83
84
84
```{r spatstat-explore}
85
85
# point pattern object for the plantation tree list
@@ -91,8 +91,8 @@ plot(X, pch = 16, background = "#EEE9DF", main = "plantation point pattern")
0 commit comments