@@ -73,20 +73,18 @@ using the `plantation` example tree list.
7373``` r
7474library(FIAstemmap )
7575
76- # structure of the cw_coef dataset
77- str(cw_coef )
78- # > 'data.frame': 430 obs. of 8 variables:
79- # > $ symbol : chr "ABAM" "ABCO" "ABGR" "ABLAA" ...
80- # > $ SPCD : num 11 15 17 18 19 20 21 22 41 62 ...
81- # > $ common_name: chr "Pacific silver fir" "white fir" "grand fir" "corkbark fir" ...
82- # > $ surrogate : chr NA NA NA NA ...
83- # > $ b0 : num 7.3 4.49 5.75 6.07 3.96 6.67 6.67 6.32 2.36 -2.12 ...
84- # > $ b1 : num 0.59 0.92 1.11 0.37 0.64 0.43 0.43 0.65 0.99 1.73 ...
85- # > $ b2 : num 0 -0.01 -0.01 0 0 0 0 0 0 -0.02 ...
86- # > $ reference : chr "Bechtold (2004)" "Bechtold (2004)" "Bechtold (2004)" "Bechtold (2004)" ...
87-
88- # add a column of predicted crown width to the plantation tree list
89- # `within()` is used to modify only a copy of the example dataset
76+ # regression coefficients for estimating tree crown width from diameter
77+ head(cw_coef )
78+ # > symbol SPCD common_name surrogate b0 b1 b2 reference
79+ # > 1 ABAM 11 Pacific silver fir <NA> 7.30 0.59 0.00 Bechtold (2004)
80+ # > 2 ABCO 15 white fir <NA> 4.49 0.92 -0.01 Bechtold (2004)
81+ # > 3 ABGR 17 grand fir <NA> 5.75 1.11 -0.01 Bechtold (2004)
82+ # > 4 ABLAA 18 corkbark fir <NA> 6.07 0.37 0.00 Bechtold (2004)
83+ # > 5 ABLA 19 subalpine fir <NA> 3.96 0.64 0.00 Bechtold (2004)
84+ # > 6 ABMA 20 California red fir <NA> 6.67 0.43 0.00 Gill et al. (2000)
85+
86+ # add predicted crown widths to the plantation tree list
87+ # `within()` to modify only a copy of the example dataset
9088tree_list <- within(plantation , CRWIDTH <- calc_crwidth(plantation ))
9189str(tree_list )
9290# > 'data.frame': 91 obs. of 13 variables:
@@ -113,20 +111,19 @@ from subplot/microplot center to the stem location, in range `0:359`)
113111and ` DIST ` (stem distance from subplot/microplot center).
114112
115113``` r
116- # display modeled tree crowns projected vertically on boundaries of the FIA
117- # four-subplot cluster design
114+ # display modeled tree crowns projected vertically on the FIA plot boundary
118115plot_crowns(tree_list , main = " plantation plot" )
119116```
120117
121- ![ ] ( man/figures/README-plot-crowns-1.png ) <!-- -- >
118+ < img src = " man/figures/README-plot-crowns-1.png " alt = " " width = " 70% " / >
122119
123120``` r
124121
125122# individual subplot
126123plot_crowns(tree_list , subplot = 4 , main = " plantation subplot 4" )
127124```
128125
129- ![ ] ( man/figures/README-plot-crowns-2.png ) <!-- -- >
126+ < img src = " man/figures/README-plot-crowns-2.png " alt = " " width = " 70% " / >
130127
131128``` r
132129
@@ -135,7 +132,7 @@ plot_crowns(tree_list, subplot = 4, microplot = TRUE,
135132 main = " plantation microplot 4" )
136133```
137134
138- ![ ] ( man/figures/README-plot-crowns-3.png ) <!-- -- >
135+ < img src = " man/figures/README-plot-crowns-3.png " alt = " " width = " 70% " / >
139136
140137Helper functions are provided to facilitate analyzing FIA tree lists as
141138Spatial Point Patterns using the ** spatstat** library.
@@ -170,19 +167,19 @@ summary(X)
170167plot(X , pch = 16 , main = " Loblolly pine plantation" )
171168```
172169
173- ![ ] ( man/figures/README-spatstat-explore-1.png ) <!-- -- >
170+ < img src = " man/figures/README-spatstat-explore-1.png " alt = " " width = " 70% " / >
174171
175172``` r
176173
177174# compute Ripley's K-function applying isotropic edge correction
178175K <- spatstat.explore :: Kest(X , rmax = 12 , correction = " isotropic" )
179176
180- # plot estimated values of K(r) along with theoretical values for a completely
181- # random (Poisson) point process, suggestng spatial regularity in this case
177+ # plot estimated K(r) along with theoretical values for a random (Poisson)
178+ # point process, suggests spatial regularity in this case
182179plot(K , main = " Ripley's K for the plantation trees" )
183180```
184181
185- ![ ] ( man/figures/README-spatstat-explore-2.png ) <!-- -- >
182+ < img src = " man/figures/README-spatstat-explore-2.png " alt = " " width = " 70% " / >
186183
187184### Compute stand structure metrics
188185
0 commit comments