Skip to content

Commit 7e6e64c

Browse files
committed
doc: include western_redcedar in the spatstat examples
1 parent 3754c82 commit 7e6e64c

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

R/spatstat_helpers.R

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
#' \pkg{spatstat} package: \url{https://cran.r-project.org/package=spatstat}
8181
#'
8282
#' @examples
83-
#' # observation window for the standard FIA plot design
83+
#' ## observation window for the standard FIA plot design
8484
#' w <- create_fia_owin()
8585
#' summary(w)
8686
#'
@@ -90,7 +90,7 @@
9090
#'
9191
#' plot(w, main = "FIA standard four-subplot design")
9292
#'
93-
#' # point pattern object for the `plantation` example data
93+
#' ## point pattern object for the `plantation` example data
9494
#' X <- create_fia_ppp(plantation)
9595
#' summary(X)
9696
#'
@@ -103,7 +103,17 @@
103103
#'
104104
#' # Ripley's K-function
105105
#' K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
106-
#' plot(K, main = "Ripley's K for the plantation trees")
106+
#' plot(K, main = "Ripley's K for the plantation FIA plot")
107+
#'
108+
#' ## point pattern object for the `western_redcedar` example data
109+
#' X <- create_fia_ppp(western_redcedar)
110+
#' summary(X)
111+
#'
112+
#' plot(X, pch = 16, main = "Western redcedar FIA plot")
113+
#'
114+
#' # Ripley's K-function
115+
#' K <- spatstat.explore::Kest(X, rmax = 12, correction = "isotropic")
116+
#' plot(K, main = "Ripley's K for the western redcedar FIA plot")
107117
#' @export
108118
create_fia_owin <- function(linear_unit = "ft", macroplot = FALSE,
109119
npoly = 360) {

man/spatstat_helpers.Rd

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)