Generate a scatter plot of interactions.

PlotScatter(
  object,
  ident1,
  ident2,
  ligands,
  receptors,
  use_raw = TRUE,
  add.lines = FALSE,
  add.text = TRUE,
  background.col = "grey",
  ligand.col = "red",
  receptor.col = "blue",
  ligand.pch = 16,
  receptor.pch = 16,
  point.cex = 1,
  label.offset = 1,
  ligand.pos = 2,
  receptor.pos = 4,
  legend.pos = "topright",
  ...
)

Arguments

object

Matchmaker object.

ident1

Cell identity 1 to plot.

ident2

Cell identity 2 to plot.

ligands

Ligand name.

receptors

Receptor name.

use_raw

Logic, use raw data or ligand-receptor data. Default is TRUE.

add.lines

Logic, draw lines between ligand-receptor pairs. Default is FALSE.

add.text

Logic, add text for ligands and receptors. Default is TRUE.

background.col

Background points color. Default is gray.

ligand.col

Ligand points color. Default is red.

receptor.col

Receptor points color. Default is blue.

ligand.pch

Point shape for ligands. Default is 16 (solid circle).

receptor.pch

Point shape for receptor. Default is 16 (solid circle).

point.cex

Point size. Default is 1.

label.offset

Text label offset. Default is 1.

ligand.pos

Ligand label position. Default is 2 (left). See text.

receptor.pos

Receptor label position. Default is 4 (right). See text.

legend.pos

Legend position. Default is 'topright'.

...

Additioanl arguments passed to plot.

Value

Return a scatter plot of interactions.

Examples

if (FALSE) {
 PlotScatter(object, ident1 = "Tumor", ident2 = "Immune", ligands = "CD274", receptors = "PDCD1")
}