| plotCCI | R Documentation |
Generic function. Draws a clustered heatmap (via ComplexHeatmap)
with rows as Sender \rightarrow Receiver cell-type pairs and columns
as LR pairs. Row annotations colour-code the sender and receiver cell types.
plotCCI(x, ...)
## S3 method for class 'blisa'
plotCCI(
x,
top_lr = 20,
top_pairs = 30,
lr_pairs = NULL,
sender = NULL,
receiver = NULL,
colors = NULL,
colours = NULL,
main = NULL,
...
)
## Default S3 method:
plotCCI(
x,
top_lr = 20,
top_pairs = 30,
lr_pairs = NULL,
sender = NULL,
receiver = NULL,
colors = NULL,
colours = NULL,
main = NULL,
...
)
x |
A |
... |
Additional arguments passed to the relevant method. |
top_lr |
Integer or |
top_pairs |
Integer or |
lr_pairs |
Character vector or |
sender |
Character vector or |
receiver |
Character vector or |
colors |
Named character vector mapping cell-type names to colours,
used for the sender/receiver row annotations. When |
colours |
Alias for |
main |
Character or |
Invisibly returns the Heatmap object.
plotCCI(blisa): Method for a blisa object. Extracts
CCI_scores and delegates to plotCCI.default. Stops with an
informative error if CCI_scores is NULL.
plotCCI(default): Method for a CCI scores data frame (e.g. the
CCI_scores slot of a blisa object).
plotCCILR for a sender-by-receiver heatmap of a
single LR pair; plotCCIsummary for an aggregated
sender-by-receiver heatmap across all LR pairs.
## Not run:
# Continuing from the blisa() example:
# result <- blisa(spe, bin_size = 50, group = "cell_type")
plotCCI(result, top_lr = 20, top_pairs = 30)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.