Hotspot analysis and stability metrics
The R package soh …
To cite properly, call the R built-in command citation("soh")
as follows:
library(soh)
citation("soh")
library(soh)
set.seed(21)
r <- raster(matrix(rnorm(2500), 50))
w <- weight_matrix_circular_fade(11,2)
g <- GetisOrd(r, w)
plot_temp_map(r)
plot_weight_matrix(w)
plot_zscore(g, sigma_thresh = 1.9)
To download the development version of the package, type the following at the R command line:
install.packages("devtools")
devtools::install_github("biggis-project/soh", build_vignettes = TRUE)
CTRL+SHIFT+T
in RStudioIf you encounter a clear bug, please file a minimal reproducible example on github.
We use lintr
which also performs the analysis on Travis-CI.
Configuration for lintr
is in .lintr
file.
Lints are treated as warnings, but we strive to be lint-free.
In RStudio, you can run lintr
from the console as follows:
> lintr::lint_package()