Bar plot of deconvoluted cell type proportions.
barPlotCellTypes(
data,
colors = NULL,
set = NULL,
prediction = "Regularized",
color.line = NA,
x.label = "Spots",
rm.x.text = FALSE,
title = "Results of deconvolution",
legend.title = "Cell types",
angle = 90,
theme = NULL,
index.st = NULL
)
A ggplot object with the provided cell proportions represented as a bar plot.
SpatialDDLS
object with the
deconv.spots
slot containing predicted cell type proportions.
Vector of colors to be used.
Type of simplification performed during deconvolution. It can
be simpli.set
or simpli.maj
(NULL
by default).
Set of predicted cell proportions to be plotted. It can be
"Regularized"
, "Intrinsic"
or "Extrinsic"
.
Color of the border bars.
Label of x-axis.
Logical value indicating whether to remove x-axis ticks (name of samples).
Title of the plot.
Title of the legend plot.
Angle of text ticks.
ggplot2 theme.
Name or index of the element wanted to be shown in the
deconv.spots
slot.
deconvSpatialDDLS