This is an R package that contains the functions for generating patterns of segregation, association, Uniform data, and various non-random labeling patterns for disease clustering in two dimensional cases, and for testing the spatial patterns (of segregation, spatial symmetry, association, disease clustering, species correspondence and reflexivity) based on NN relations, especially using contingency tables such as nearest neighbor contingency tabels, NN symmetry contingency tables, species correspondence contingency tables and reflexivity contingency tables for two- and higher-dimensional data, for visualization for the two dimensional data. The tests are usually (asymptotic) normal z-tests and chi-square tests.

Install from GitHub : devtools::install_github("elvanceyhan/nnspat")

**Any scripts or data that you put into this service are public.**

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.