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: `aes_string()` was deprecated in ggplot2 3.0.0.
#>  Please use tidy evaluation idioms with `aes()`.
#>  See also `vignette("ggplot2-in-packages")` for more information.
#>  The deprecated feature was likely used in the omnideconv package.
#>   Please report the issue to the authors.
#> Warning: Ignoring unknown aesthetics: text