From 5dc16ad4facda3ec4221336821544dcc5676455b Mon Sep 17 00:00:00 2001 From: mhesselbarth Date: Wed, 21 Sep 2022 09:47:21 -0400 Subject: [PATCH] [skip-ci] Typos --- NEWS.md | 7 ++++--- R/plot.rd_pat.R | 2 +- man/plot.rd_pat.Rd | 2 +- vignettes/articles/background.Rmd | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/NEWS.md b/NEWS.md index 21eb445a..db53ecc3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -14,8 +14,9 @@ * Include new `spatstat` package structure # shar 1.3.1 -* Improvements +* Bugfixes * Bugfix in `plot.rd_pat()` and `plot.rd_mar()` +* New functionality * Adding internal `sample_randomized()` function used during plotting # shar 1.3 @@ -100,8 +101,8 @@ # shar 0.2.1 * Improvements - * minor speed improvment for `reconstruct_pattern()`, `reconstruct_marks()` and `calculate_energy()` - * The starting pattern is now identical for all n_random and only the relocation process differs between randomizations + * Minor speed improvement for `reconstruct_pattern()`, `reconstruct_marks()` and `calculate_energy()` + * The starting pattern is now identical for all n_random and only the relocation process differs between randomization * All summary functions are only calculated for 250 steps from 0 to `rmax` * Bugfixes * New functionality diff --git a/R/plot.rd_pat.R b/R/plot.rd_pat.R index 0e8d7d07..107daf5c 100644 --- a/R/plot.rd_pat.R +++ b/R/plot.rd_pat.R @@ -2,7 +2,7 @@ #' #' @description Plot method for rd_pat object #' -#' @param x rd_pat bject with randomized patterns. +#' @param x rd_pat object with randomized patterns. #' @param what Character specifying to plot summary functions of point patterns #' (\code{what = "sf"}) or actual patterns (\code{what = "pp"}). #' @param n Integer with number or vector of ids of randomized pattern to plot. diff --git a/man/plot.rd_pat.Rd b/man/plot.rd_pat.Rd index 7f27affd..2949e052 100644 --- a/man/plot.rd_pat.Rd +++ b/man/plot.rd_pat.Rd @@ -16,7 +16,7 @@ ) } \arguments{ -\item{x}{rd_pat bject with randomized patterns.} +\item{x}{rd_pat object with randomized patterns.} \item{what}{Character specifying to plot summary functions of point patterns (\code{what = "sf"}) or actual patterns (\code{what = "pp"}).} diff --git a/vignettes/articles/background.Rmd b/vignettes/articles/background.Rmd index b7011096..096eb6ba 100644 --- a/vignettes/articles/background.Rmd +++ b/vignettes/articles/background.Rmd @@ -27,7 +27,7 @@ The following two methods randomize the environmental data, i.e. the SpatRaster The torus-translation test (Harms et al. 2001) shifts the habitat map in all four cardinal directions around a torus. This is only possible for square rasters. To use this method in **shar** use `translate_raster()`. ### Randomized-habitats procedure -The randomze-habitats procedure (Harms et al. 2001) is also possible for non-square raster and randomizes the habitats using a random-walk algorithm. To use this method in **shar** use `randomize_raster()`. +The randomized-habitats procedure (Harms et al. 2001) is also possible for non-square raster and randomizes the habitats using a random-walk algorithm. To use this method in **shar** use `randomize_raster()`. ```{r random-walk, echo = FALSE, out.height = "35%", out.width = "35%", fig.align = "center"} knitr::include_graphics("random_walk.gif")