Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pak::pak("firelab/FIAstemmap")

### Predict tree crown width

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.
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.

```{r predict-crwidth}
library(FIAstemmap)
Expand Down Expand Up @@ -95,7 +95,11 @@ K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
# Plot estimated K(r) along with theoretical values for a random point process,
# suggesting spatial regularity in this case.
plot(K, main = "Ripley's K for the plantation FIA plot")
```

The `western_redcedar` dataset is another example tree list included in the package.

```{r spatstat-explore-cont}
## Spatial point pattern for the western redcedar tree list.
X <- create_fia_ppp(western_redcedar)
summary(X)
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ 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.
(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.

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

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

``` r
The `western_redcedar` dataset is another example tree list included in
the package.

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

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

``` r

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

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

### Compute stand structure metrics

Expand Down
Binary file added man/figures/README-spatstat-explore-cont-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added man/figures/README-spatstat-explore-cont-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading