plot_cci_lrpairs: Plot LR pairs

View source: R/plot.R

plot_cci_lrpairsR Documentation

Plot LR pairs

Description

Heatmap with LR pairs of celltype_sender and celltype_receiver

Usage

plot_cci_lrpairs(
  object,
  celltype_sender,
  celltype_receiver,
  top_lrpairs = 20,
  color = NULL,
  border_color = "black",
  type = "sig",
  fontsize_number = 5,
  number_color = "black",
  color_low = NULL,
  color_high = NULL
)

Arguments

object

SpaTalk object generated from dec_cci.

celltype_sender

Name of celltype_sender.

celltype_receiver

Name of celltype_receiver.

top_lrpairs

Number of top lrpairs for plotting. Default is 20.

color

Color for the cells in heatmap.

border_color

color of cell borders on heatmap, use NA if no border should be drawn.

type

Set 'sig' to plot significant LRI pairs or set 'number' to plot the number of spatial LRI pairs.

fontsize_number

fontsize of the numbers displayed in cells.

number_color

color of the text.

color_low

For 'number' type, define the color for the lowest value.

color_high

For 'number' type, define the color for the highest value.


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