项目作者: biggis-project

项目描述 :
Hotspot analysis and stability metrics
高级语言: R
项目地址: git://github.com/biggis-project/soh.git
创建时间: 2017-02-06T16:02:54Z
项目社区:https://github.com/biggis-project/soh

开源协议:MIT License

下载


Build Status
codecov.io

Summary

The R package soh

How to cite

To cite properly, call the R built-in command citation("soh") as follows:

  1. library(soh)
  2. citation("soh")

Basic example

  1. library(soh)
  2. set.seed(21)
  3. r <- raster(matrix(rnorm(2500), 50))
  4. w <- weight_matrix_circular_fade(11,2)
  5. g <- GetisOrd(r, w)
  6. plot_temp_map(r)
  7. plot_weight_matrix(w)
  8. plot_zscore(g, sigma_thresh = 1.9)

Download and Install

To download the development version of the package, type the following at the R command line:

  1. install.packages("devtools")
  2. devtools::install_github("biggis-project/soh", build_vignettes = TRUE)

How to contribute

  • Fork, clone, edit, commit, push, create pull request
  • Use RStudio
  • Unit-testing: press CTRL+SHIFT+T in RStudio
    • we know that is hard to write tests especially for a visual package like this

Reporting bugs and other issues

If you encounter a clear bug, please file a minimal reproducible example on github.

How to perform static code analysis and style checks

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:

  1. > lintr::lint_package()

Who do I talk to?