Violin plot spatial distance of LR pair between expressed senders and receivers and between expressed cell-cell pairs.
Usage
plot_lrpair_vln(
object,
celltype_sender,
celltype_receiver,
ligand,
receptor,
vln_color = NULL,
if_plot_boxplot = T,
box_width = 0.2
)Arguments
- object
SpaTalk object generated from
dec_celltype.- celltype_sender
Name of celltype_sender.
- celltype_receiver
Name of celltype_receiver.
- ligand
Name of ligand from celltype_sender.
- receptor
Name of receptor from celltype_receiver.
- vln_color
Color for violins. Two values.
- if_plot_boxplot
Whether to plot boxplot. Default is
TRUE.- box_width
Box width. Default is
0.2.