Skip to contents

Posterior mean and band of the spatial correlation of the density and expression fields, with the threshold that defines the practical range as a dashed line.

Usage

plot_denmark_decay(obj, decay = NULL, xlab = "Distance")

Arguments

obj

A denmark object from DenMark().

decay

Optional output of denmark_decay(); computed from obj when NULL.

xlab

Label of the distance axis.

Value

A ggplot object.

Examples

toy <- denmark_toy_data()
tissue <- denmark_alpha_shape(toy$x, toy$y)
tumor <- subset(toy, celltype == "Tumor", select = -celltype)
fit <- DenMark(tumor, gene = "geneA", boundary = tissue,
               grid_size = 10, basis = 10,
               chains = 2, iter_warmup = 300, iter_sampling = 300,
               seed = 2024, quiet = TRUE)
plot_denmark_decay(fit)