| plotCCILR | R Documentation |
Generic function. Reshapes the CCI data frame into a receiver-by-sender cell-type matrix for one selected LR pair and draws a clustered heatmap.
plotCCILR(x, ...)
## S3 method for class 'blisa'
plotCCILR(x, index = 1, ligand = NULL, receptor = NULL, main = NULL, ...)
## Default S3 method:
plotCCILR(x, lr_pair, main = NULL, ...)
x |
A |
... |
Additional arguments passed to the relevant method. |
index |
Integer. Row index into |
ligand |
Character. Ligand gene symbol. When both |
receptor |
Character. Receptor gene symbol. Must be supplied together
with |
main |
Character or |
lr_pair |
Character. Column name in the CCI scores data frame
corresponding to the ligand-receptor pair to visualise
(e.g. |
A Heatmap object.
plotCCILR(blisa): Method for a blisa object. The LR pair is
selected by index (default 1, the top-ranked pair) unless both
ligand and receptor are supplied, in which case the matching
row is located automatically and index is ignored. Stops with an
informative error if CCI_scores is NULL or the selected LR
pair has no significant hotspots.
plotCCILR(default): Method for a CCI scores data frame (e.g. the
CCI_scores slot of a blisa object). The LR pair is selected
by column name via lr_pair.
plotCCI for an overview heatmap across all LR pairs;
plotCCIsummary for an aggregated sender-by-receiver heatmap.
## Not run:
# Continuing from the blisa() example:
# result <- blisa(spe, bin_size = 50, group = "cell_type")
plotCCILR(result, index = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.