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,
...
)
Matchmaker object.
Ligand name.
Receptor name.
Cell identity to plot for ligand.
Cell identity to plot for receptor.
Whether to fix the hist
breaks using all the data. Default is TRUE.
Number of bins to use for histogram. Default is 100.
Histogram of frequencies. Default is FALSE.
Two color code used for ligand and receptor. Default is pink and lightblue.
Color transparency. Default is 0.7.
Additional argument passing to hist
.
Plot a histogram plot.
if (FALSE) {
PlotHistogram(object, ligand = "CSF1", receptor = "CSF1R",
ligand.ident = "Tumor", receptor = "Macrophages")
}