View source: R/plotCCIsummary.R
| plotCCIsummary | R Documentation |
Generic function. Aggregates CCI scores across all (or the top-ranked)
ligand-receptor pairs and draws a clustered receiver-by-sender heatmap, one
cell per Sender \rightarrow Receiver combination.
plotCCIsummary(x, ...)
## S3 method for class 'blisa'
plotCCIsummary(
x,
top_lr = NULL,
sender = NULL,
receiver = NULL,
agg_fun = sum,
main = NULL,
...
)
## Default S3 method:
plotCCIsummary(
x,
top_lr = NULL,
sender = NULL,
receiver = NULL,
agg_fun = sum,
main = NULL,
...
)
x |
A |
... |
Additional arguments passed to the relevant method. |
top_lr |
Integer or |
sender |
Character vector or |
receiver |
Character vector or |
agg_fun |
Function used to aggregate scores across LR pairs for each
Sender |
main |
Character or |
A Heatmap object.
plotCCIsummary(blisa): Method for a blisa object. Stops with an
informative error if CCI_scores is NULL.
plotCCIsummary(default): Method for a CCI scores data frame (e.g. the
CCI_scores slot of a blisa object).
plotCCILR for a per-LR-pair version of this plot;
plotCCI for a heatmap with LR pairs as columns.
## Not run:
# Continuing from the blisa() example:
# result <- blisa(spe, bin_size = 50, group = "cell_type")
plotCCIsummary(result)
plotCCIsummary(result, top_lr = 10, agg_fun = mean)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.