View source: R/correlationStatistics.R
signedLisa | R Documentation |
Signed local indicators of spatial association to identify regions driving global autocorrelation
signedLisa(x, weight, alternative = "greater")
x |
Feature value |
weight |
Adjacency weight matrix |
alternative |
"two.sided", "less", or "greater" |
Signed LISA statistic for each point
data(mOB) pos <- mOB$pos weight <- getSpatialNeighbors(pos) gexp <- normalizeCounts(mOB$counts, log=FALSE, verbose=FALSE)['Camk4',] plotEmbedding(pos, colors=gexp, cex=3) slisa <- signedLisa(gexp, weight) plotEmbedding(pos, colors=slisa, cex=3, gradientPalette=colorRampPalette(c('darkgreen', 'white', 'darkorange'))(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.