Skip to content

Commit cf7c7fb

Browse files
authored
Merge pull request #1 from ctoney/main
Update images for readme
2 parents 8c775ea + ac25d4d commit cf7c7fb

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

README.Rmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pak::pak("firelab/FIAstemmap")
4747

4848
### Predict tree crown width
4949

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.
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 species code), `STATUSCD` (FIA tree status code, `1` = live) and `DIA` (FIA tree diameter). The `plantation` dataset used here is an example tree list included in the package.
5151

5252
```{r predict-crwidth}
5353
library(FIAstemmap)
@@ -95,7 +95,11 @@ K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
9595
# Plot estimated K(r) along with theoretical values for a random point process,
9696
# suggesting spatial regularity in this case.
9797
plot(K, main = "Ripley's K for the plantation FIA plot")
98+
```
99+
100+
The `western_redcedar` dataset is another example tree list included in the package.
98101

102+
```{r spatstat-explore-cont}
99103
## Spatial point pattern for the western redcedar tree list.
100104
X <- create_fia_ppp(western_redcedar)
101105
summary(X)

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ width prediction attempts to avoid extrapolation beyond the range of the
6767
model fitting data by providing reasonable fall backs for the obvious
6868
cases. Details are given in the documentation for `calc_crwidth()`. The
6969
input is a data frame of tree records which must have columns `SPCD`
70-
(FIA integer species code), `STATUSCD` (FIA integer tree status code,
71-
`1` = live) and `DIA` (FIA tree diameter in inches). The `plantation`
72-
dataset used here is an example tree list included in the package.
70+
(FIA species code), `STATUSCD` (FIA tree status code, `1` = live) and
71+
`DIA` (FIA tree diameter). The `plantation` dataset used here is an
72+
example tree list included in the package.
7373

7474
``` r
7575
library(FIAstemmap)
@@ -184,8 +184,10 @@ plot(K, main = "Ripley's K for the plantation FIA plot")
184184

185185
<img src="man/figures/README-spatstat-explore-2.png" alt="" width="70%" />
186186

187-
``` r
187+
The `western_redcedar` dataset is another example tree list included in
188+
the package.
188189

190+
``` r
189191
## Spatial point pattern for the western redcedar tree list.
190192
X <- create_fia_ppp(western_redcedar)
191193
summary(X)
@@ -211,7 +213,7 @@ plot(X, pch = 16, background = "#fdf6e3",
211213
main = "Western redcedar point pattern")
212214
```
213215

214-
<img src="man/figures/README-spatstat-explore-3.png" alt="" width="70%" />
216+
<img src="man/figures/README-spatstat-explore-cont-1.png" alt="" width="70%" />
215217

216218
``` r
217219

@@ -220,7 +222,7 @@ K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
220222
plot(K, main = "Ripley's K for the western redcedar FIA plot")
221223
```
222224

223-
<img src="man/figures/README-spatstat-explore-4.png" alt="" width="70%" />
225+
<img src="man/figures/README-spatstat-explore-cont-2.png" alt="" width="70%" />
224226

225227
### Compute stand structure metrics
226228

20.8 KB
Loading
28.6 KB
Loading

0 commit comments

Comments
 (0)