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
+43-9Lines changed: 43 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -47,15 +47,16 @@ pak::pak("ctoney/FIAstemmap")
47
47
48
48
### Predict crown width
49
49
50
-
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. 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` 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.
51
51
52
52
```{r predict-crwidth}
53
53
library(FIAstemmap)
54
54
55
55
# regression coefficients for estimating tree crown width from diameter
56
+
# ?cw_coef
56
57
head(cw_coef)
57
58
58
-
# add predicted crown widths to the plantation tree list
59
+
# add predicted crown widths to the `plantation` tree list
59
60
# `within()` to modify only a copy of the example dataset
Helper functions are provided to facilitate analyzing 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 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.
81
83
82
84
```{r spatstat-explore}
83
85
# point pattern object for the plantation tree list
84
86
X <- create_fia_ppp(plantation)
85
87
summary(X)
86
88
87
-
plot(X, pch = 16, background = "#EEE9DF", main = "Loblolly pine plantation")
89
+
plot(X, pch = 16, background = "#EEE9DF", main = "plantation point pattern")
0 commit comments