Comparing the number of inferred communication links between different datasets
compareInteractions(
object,
measure = c("count", "weight"),
color.use = NULL,
group = NULL,
group.levels = NULL,
group.facet = NULL,
group.facet.levels = NULL,
n.row = 1,
color.alpha = 1,
legend.title = NULL,
width = 0.6,
title.name = NULL,
digits = 3,
xlabel = NULL,
ylabel = NULL,
remove.xtick = FALSE,
show.legend = TRUE,
x.lab.rot = FALSE,
angle.x = 45,
vjust.x = NULL,
hjust.x = 1,
size.text = 10
)
A merged CellChat object
"count" or "weight". "count": comparing the number of interactions; "weight": comparing the total interaction weights (strength)
defining the color for each group of datasets
a vector giving the groups of different datasets to define colors of the bar plot. Default: only one group and a single color
the factor level in the defined group
Name of one metadata column defining faceting groups
the factor level in the defined group.facet
Number of rows in facet_grid()
transparency
legend title
bar width
main title of the plot
integer indicating the number of decimal places (round) to be used when `measure` is `weight`.
label of x-axis
label of y-axis
whether remove xtick
whether show the legend
adjusting parameters if rotating xtick.labels when x.lab.rot = TRUE
font size of the text
A ggplot object