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