scatterPlot: Generate Scatter Plot

View source: R/plot.R

scatterPlotR Documentation

Generate Scatter Plot

Description

Generate a scatter plot of interactions.

Usage

scatterPlot(
  data,
  idents,
  ident1,
  ident2,
  ligands,
  receptors,
  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

data

Data matrix to plot

idents

Cell type identity.

ident1

Cell identity 1 to plot.

ident2

Cell identity 2 to plot.

ligands

Ligand name.

receptors

Receptor name.

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 text position. Default is 2 (left). See text.

receptor.pos

Receptor text 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.


stevexniu/scMatchmaker documentation built on June 2, 2022, 12:35 p.m.