Plot a histogram for a pair of ligand and receptor.

PlotHistogram(
  object,
  ligand,
  receptor,
  ligand.ident,
  receptor.ident,
  fix.breaks = TRUE,
  nbins = 100,
  freq = FALSE,
  cols.use = c("pink", "lightblue"),
  alpha = 0.7,
  ...
)

Arguments

object

Matchmaker object.

ligand

Ligand name.

receptor

Receptor name.

ligand.ident

Cell identity to plot for ligand.

receptor.ident

Cell identity to plot for receptor.

fix.breaks

Whether to fix the hist breaks using all the data. Default is TRUE.

nbins

Number of bins to use for histogram. 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 plot.

Examples

if (FALSE) {
 PlotHistogram(object, ligand = "CSF1", receptor = "CSF1R", 
 ligand.ident = "Tumor", receptor = "Macrophages")
}