Skip to contents

Posterior mean and credible interval of rho for each gene, colored by the DCG call.

Usage

plot_denmark_scan(scan, top = NULL)

Arguments

scan

Data frame returned by denmark_scan().

top

Optional number of genes to show, those with the largest absolute posterior mean of rho.

Value

A ggplot object.

Examples

toy <- denmark_toy_data()
tissue <- denmark_alpha_shape(toy$x, toy$y)
tumor <- subset(toy, celltype == "Tumor", select = -celltype)
scan <- denmark_scan(tumor, genes = c("geneA", "geneC"), boundary = tissue,
                     grid_size = 10,
                     basis = 10, chains = 2, iter_warmup = 300,
                     iter_sampling = 300, seed = 2024, verbose = FALSE)
plot_denmark_scan(scan)
#> `height` was translated to `width`.