plot_lrpair_vln: Plot spatial distance of LR pair with vlnplot

View source: R/plot.R

plot_lrpair_vlnR Documentation

Plot spatial distance of LR pair with vlnplot

Description

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.


ZJUFanLab/SpaTalk documentation built on Jan. 21, 2025, 3:13 p.m.