Plot Deconvolution results

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")
#> Warning: Ignoring unknown aesthetics: text
0.000.250.500.751.00HD30_PBMC_0HD30_PBMC_1HD30_PBMC_3HD30_PBMC_7HD31_PBMC_0HD31_PBMC_1HD31_PBMC_3HD31_PBMC_7
cell_typeBCD4 TCD8 TDCMonoNKbisque