plot_bootstrap_coclustering: Plot the boostrapped co-clustering probability.

View source: R/plot_boostrap_coclustering.R

plot_bootstrap_coclusteringR Documentation

Plot the boostrapped co-clustering probability.

Description

From the results of a call to mobster_boostrap, and the results of a call to bootstrapped_statistics, a figure (heatmap-style) for the boostrapped co-clustering probability is produced assembling plots with cowplot::plot_grid.

Usage

plot_bootstrap_coclustering(
  x,
  bootstrap_results,
  bootstrap_statistics,
  colors = c(Tail = "gainsboro")
)

Arguments

x

A MOBSTER fit.

bootstrap_results

Results of a call to mobster_boostrap.

colors

If provided, these colours will be used for each cluster. If a subset of colours is provided, palette Set1 from RColorBrewer is used. By default the tail colour is provided as 'gainsboro'.

bootstrap_statisticsResults

of a call to bootstrapped_statistics.

Value

A cowplot figure of the bootstrapped co-clustering probability.

Examples

# Random small dataset
dataset = random_dataset(N = 200, seed = 123, Beta_variance_scaling = 100)
x = mobster_fit(dataset$data, auto_setup = 'FAST')

# Just 5 resamples of a nonparametric bootstrap run, disabling the parallel engine
options(easypar.parallel = FALSE)
boot_results = mobster_bootstrap(x$best, n.resamples = 5, auto_setup = 'FAST')

boot_stats = bootstrapped_statistics(x$best, boot_results)
plot_bootstrap_coclustering(x$best, boot_results, boot_stats)

caravagnalab/mobster documentation built on March 25, 2023, 3:40 p.m.