histogramPlot: Generate Interaction Histograms

View source: R/plot.R

histogramPlotR Documentation

Generate Interaction Histograms

Description

Generate a histogram for a pair of ligand and receptor.

Usage

histogramPlot(
  data,
  idents,
  ligand,
  receptor,
  ligand.ident,
  receptor.ident,
  breaks = NULL,
  nbins = 100,
  freq = FALSE,
  cols.use = c("pink", "lightblue"),
  alpha = 0.7,
  ...
)

Arguments

data

Data matrix to plot

idents

Cell type identity.

ligand

Ligand name.

receptor

Receptor name.

ligand.ident

Cell identity to plot for ligand.

receptor.ident

Cell identity to plot for receptor.

breaks

A vector giving the breakpoints between histogram cells. Default is NULL.

nbins

Number of bins to use for histogram when breaks option is NULL. Default is 100.

freq

Histogram of frequencies. Default is FALSE.

cols.use

Two color code used for ligand and receptor. Default is pink and lightblue.

alpha

Color transparency. Default is 0.7

...

Additional argument passing to hist.

Value

Plot a histogram.


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