Skip to content

Commit 767dc4f

Browse files
committed
usage examples [WIP]
1 parent f289d42 commit 767dc4f

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

README.Rmd

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ plot(X, pch = 16, background = "#EEE9DF", main = "plantation point pattern")
9191
# compute Ripley's K-function applying isotropic edge correction
9292
K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
9393
94-
# plot estimated K(r) along with theoretical values for a completely random
94+
# plot the estimated K(r) along with theoretical values for a completely random
9595
# point process, spatial regularity suggested in this case
9696
plot(K, main = "Ripley's K for the plantation trees")
9797
```
@@ -106,14 +106,14 @@ plot(K, main = "Ripley's K for the plantation trees")
106106
tree_list[tree_list$SUBP == 1 & tree_list$DIA >= 5, ] |>
107107
calc_crown_overlay(sample_radius = 24)
108108
109-
## calculate stand height metrics, included by default in the output of
110-
## `calc_tcc_metrics()` (see below)
109+
## calculate stand height metrics, which are included by default in the output
110+
## of `calc_tcc_metrics()` (see below)
111111
112112
# calc_ht_metrics(plantation)
113113
114114
## predict plot-level canopy cover from individual tree measurements
115115
116-
# full output
116+
# full output, TCC predicted with the "stem-map" model
117117
calc_tcc_metrics(plantation)
118118
119119
# return only the predicted TCC value (`$model_tcc`)
@@ -135,7 +135,6 @@ head(tree)
135135
## process tree data
136136
137137
# TODO...
138-
139138
```
140139

141140
## References

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ plot(X, pch = 16, background = "#EEE9DF", main = "plantation point pattern")
177177
# compute Ripley's K-function applying isotropic edge correction
178178
K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
179179

180-
# plot estimated K(r) along with theoretical values for a completely random
180+
# plot the estimated K(r) along with theoretical values for a completely random
181181
# point process, spatial regularity suggested in this case
182182
plot(K, main = "Ripley's K for the plantation trees")
183183
```
@@ -195,14 +195,14 @@ tree_list[tree_list$SUBP == 1 & tree_list$DIA >= 5, ] |>
195195
calc_crown_overlay(sample_radius = 24)
196196
#> [1] 86.9
197197

198-
## calculate stand height metrics, included by default in the output of
199-
## `calc_tcc_metrics()` (see below)
198+
## calculate stand height metrics, which are included by default in the output
199+
## of `calc_tcc_metrics()` (see below)
200200

201201
# calc_ht_metrics(plantation)
202202

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

205-
# full output
205+
# full output, TCC predicted with the "stem-map" model
206206
calc_tcc_metrics(plantation)
207207
#> $model_tcc
208208
#> [1] 88.5
@@ -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

0 commit comments

Comments
 (0)