plot_deconvolution: Plot Deconvolution results

View source: R/visualisation.R

plot_deconvolutionR Documentation

Plot Deconvolution results

Description

Plot Deconvolution results

Usage

plot_deconvolution(
  deconvolutions,
  plot_method = "bar",
  facet = "method",
  palette = "Spectral"
)

Arguments

deconvolutions

A named list of deconvolution results

plot_method

Type of plot to be rendered ("bar", "jitter", "scatter", "box", "heatmap")

facet

Variable for grouping the plots ("method", "cell_type", "sample")

palette

RColorBrewer palette name (optional), standard = "Set1"

Value

ggplot rendered by plotly for interactivity

Examples

data("single_cell_data_1")
data("cell_type_annotations_1")
data("batch_ids_1")
data("bulk")

deconvolution <- omnideconv::deconvolute(
  bulk, NULL, "bisque",
  single_cell_data_1,
  cell_type_annotations_1,
  batch_ids_1
)
deconvolution <- list(deconvolution)
names(deconvolution) <- "bisque"
omnideconv::plot_deconvolution(deconvolution, "bar", "method", "Spectral")

PelzKo/immunedeconv2 documentation built on Feb. 12, 2025, 4:16 p.m.