joincountAnalysis: Join count analysis

View source: R/joincount.R

joincountAnalysisR Documentation

Join count analysis

Description

This function performes multi-categorical join count analysis of the rasterized sample. A neighbors list is then created from the rasterized sample, in which adjacent and diagonal neighbors for each pixel are identified.

Usage

joincountAnalysis(mosaicIntegration)

Arguments

mosaicIntegration

A raster object converted from a labeled spatial tissue map from Function rasterization.

Value

A data.frame that contains the observed join counts, the expected count under conditions of spatial randomness, the variance calculated under non-free sampling, and calculated Z-score.

Examples

fpath <- system.file("extdata", "dataframe.rda", package="stJoincount")
load(fpath)
mosaicIntegration <- rasterizeEachCluster(humanBC)
joincount.result <- joincountAnalysis(mosaicIntegration)

Nina-Song/stJoincount documentation built on Oct. 23, 2022, 4:55 p.m.