R/spatial_visualization.R
plotSpatialCommunicationNetwork.RdVisualize cell-cell communication with spatial context
plotSpatialCommunicationNetwork(
object,
metabolite = NULL,
sender_type = NULL,
receiver_type = NULL,
top_n = 20,
arrow_scale = 1,
point_size = 5,
show_labels = TRUE
)A scMetaLink object with spatial communication results
Character. Metabolite to visualize (NULL for aggregate)
Character. Sender cell type (NULL for all)
Character. Receiver cell type (NULL for all)
Integer. Number of top interactions to show arrows for
Numeric. Scale factor for arrow thickness
Numeric. Size of cell type center points
Logical. Show cell type labels
A ggplot2 object