Create a dotplot showing communication strength across multiple LR pairs or pathways.
Usage
plot_communication_dotplot(
seurat_obj,
database_name,
clustering,
keys = NULL,
cluster_pairs = NULL,
top_n_pairs = 20L,
size_by = "communication",
color_by = "communication",
size_range = c(1, 6),
p_threshold = 0.05,
title = NULL
)Arguments
- seurat_obj
Seurat object with cluster communication results.
- database_name
Database name.
- clustering
Clustering name.
- keys
LR pairs or pathways to show.
- cluster_pairs
Specific cluster pairs to show (data.frame with sender and receiver columns). If NULL, shows top pairs.
- top_n_pairs
Show top N cluster pairs by communication strength.
- size_by
Dot size: "communication" (default) or "pvalue".
- color_by
Dot color: "communication", "pvalue", or fixed.
- size_range
Range for dot sizes.
- p_threshold
P-value threshold.
- title
Plot title.