Skip to content

Commit c6367b2

Browse files
committed
usage examples [WIP]
1 parent e3b264f commit c6367b2

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ library(FIAstemmap)
5656
# see `?cw_coef`
5757
head(cw_coef)
5858
59-
# add a column predicted crown widths to the `plantation` tree list
59+
# add a column of predicted crown widths to the `plantation` tree list
6060
# `within()` is used to modify only a copy of the example dataset
6161
tree_list <- within(plantation, CRWIDTH <- calc_crwidth(plantation))
6262
str(tree_list)
@@ -86,7 +86,7 @@ Helper functions facilitate the analysis of FIA tree lists as Spatial Point Patt
8686
X <- create_fia_ppp(plantation)
8787
summary(X)
8888
89-
plot(X, pch = 16, background = "#EEE9DF", main = "plantation point pattern")
89+
plot(X, pch = 16, background = "#fdf6e3", main = "plantation point pattern")
9090
9191
# compute Ripley's K-function applying isotropic edge correction
9292
K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
@@ -113,7 +113,7 @@ tree_list[tree_list$SUBP == 1 & tree_list$DIA >= 5, ] |>
113113
114114
## predict plot-level canopy cover from individual tree measurements
115115
116-
# by default, TCC predicted with the "stem-map" model and full output returned
116+
# by default, TCC is predicted with the "stem-map" model, full output returned
117117
calc_tcc_metrics(plantation)
118118
119119
# return only the predicted TCC value (`$model_tcc`)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ head(cw_coef)
8585
#> 5 ABLA 19 subalpine fir <NA> 3.96 0.64 0.00 Bechtold (2004)
8686
#> 6 ABMA 20 California red fir <NA> 6.67 0.43 0.00 Gill et al. (2000)
8787

88-
# add a column predicted crown widths to the `plantation` tree list
88+
# add a column of predicted crown widths to the `plantation` tree list
8989
# `within()` is used to modify only a copy of the example dataset
9090
tree_list <- within(plantation, CRWIDTH <- calc_crwidth(plantation))
9191
str(tree_list)
@@ -167,7 +167,7 @@ summary(X)
167167
#> Unit of length: 1 foot
168168
#> Fraction of frame area: 0.124
169169

170-
plot(X, pch = 16, background = "#EEE9DF", main = "plantation point pattern")
170+
plot(X, pch = 16, background = "#fdf6e3", main = "plantation point pattern")
171171
```
172172

173173
<img src="man/figures/README-spatstat-explore-1.png" alt="" width="70%" />
@@ -202,7 +202,7 @@ tree_list[tree_list$SUBP == 1 & tree_list$DIA >= 5, ] |>
202202

203203
## predict plot-level canopy cover from individual tree measurements
204204

205-
# by default, TCC predicted with the "stem-map" model and full output returned
205+
# by default, TCC is predicted with the "stem-map" model, full output returned
206206
calc_tcc_metrics(plantation)
207207
#> $model_tcc
208208
#> [1] 88.4
@@ -296,7 +296,7 @@ f <- system.file("extdata/mt_lnf_2022_1cond_tree.csv", package="FIAstemmap")
296296
tree <- load_tree_data(f)
297297
#> ! The data source does not have DIST and/or AZIMUTH
298298
#> ℹ Fetching tree data...
299-
#> ✔ Fetching tree data... [15ms]
299+
#> ✔ Fetching tree data... [14ms]
300300
#>
301301
#> ℹ 910 tree records returned
302302

95 Bytes
Loading

0 commit comments

Comments
 (0)