|
1 | | -#' Helper functions for spatial point pattern analysis of FIA plots |
| 1 | +#' Analyze tree spatial pattern on FIA plots |
2 | 2 | #' |
3 | | -#' Functions that facilitate analysis of FIA tree data using the \pkg{spatstat} |
4 | | -#' library. |
| 3 | +#' Functions that facilitate point pattern analysis of FIA tree data using the |
| 4 | +#' \pkg{spatstat} library. |
5 | 5 | #' |
6 | 6 | #' @name spatstat_helpers |
7 | 7 | #' @details |
|
48 | 48 | #' @param npoly Integer value giving the number of edges to use for polygon |
49 | 49 | #' approximation. Defaults to `360`. |
50 | 50 | #' @param tree_list A data frame containing a set of tree records for one FIA |
51 | | -#' plot (see Deatils). |
| 51 | +#' plot (see Details). |
52 | 52 | #' @param live_trees A logical value, `TRUE` to include live trees only (the |
53 | 53 | #' default, i.e., `STATUSCD == 1`). |
54 | 54 | #' @param min_dia A numeric value specifying the minimum diameter threshold |
|
63 | 63 | #' to designate as \pkg{spatstat} `marks` which carry additional information for |
64 | 64 | #' each data point in a point pattern object. |
65 | 65 | #' @param mark_as_factor An optional subset of `mark_cols` to be treated as |
66 | | -#' `factor` marks. If not already `factor`, these will be corced as such upon |
| 66 | +#' `factor` marks. If not already `factor`, these will be coerced as such upon |
67 | 67 | #' input. `factor` marks are those that take only a finite number of possible |
68 | 68 | #' values (e.g. colors or types). |
69 | 69 | #' |
|
78 | 78 | #' |
79 | 79 | #' plot(w, main = "FIA standard four-subplot design") |
80 | 80 | #' |
81 | | -#' # point pattern object for the plantation example dataset |
| 81 | +#' # point pattern object for the plantation example data |
82 | 82 | #' X <- create_fia_ppp(plantation) |
83 | 83 | #' summary(X) |
84 | 84 | #' |
85 | | -#' plot(X, main = "Pine plantation stem map") |
| 85 | +#' plot(X, pch = 16, main = "Loblolly pine plantation") |
86 | 86 | #' |
87 | 87 | #' # plot trees as trees :) |
88 | 88 | #' X <- create_fia_ppp(plantation, mark_cols = "SPCD") |
89 | | -#' plot(X, main = "Pine plantation stem map", |
| 89 | +#' plot(X, main = "Loblolly pine plantation", |
90 | 90 | #' shape = "arrows", direction = 90, size = 12, cols = "darkgreen", |
91 | 91 | #' background = "gray90", legend = FALSE) |
92 | 92 | #' |
|
0 commit comments