View source: R/visualization.R
netVisual_barplot | R Documentation |
Visualization of (differential) number of interactions
netVisual_barplot(
object,
comparison = c(1, 2),
measure = c("count", "weight"),
sources.use = NULL,
targets.use = NULL,
invert.source = FALSE,
invert.target = FALSE,
signaling = NULL,
slot.name = c("netP", "net"),
color.use = NULL,
title.name = NULL,
x.lab.rot = FALSE,
...
)
object |
A merged CellChat object or a single CellChat object |
comparison |
a numerical vector giving the datasets for comparison in object.list; e.g., comparison = c(1,2) |
measure |
"count" or "weight". "count": comparing the number of interactions; "weight": comparing the total interaction weights (strength) |
sources.use |
a vector giving the index or the name of source cell groups |
targets.use |
a vector giving the index or the name of target cell groups. |
invert.source, invert.target |
retain the complementary set |
signaling |
a character vector giving the name of signaling networks in a single CellChat object |
slot.name |
the slot name of object. Set is to be "netP" if input signaling is a pathway name; Set is to be "net" if input signaling is a ligand-receptor pair |
color.use |
the character vector defining the color of each cell group |
title.name |
the name of the title |
x.lab.rot |
do rotation for the x-ticklabels |
... |
Parameters passing to 'barplot_internal' |
an object of ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.