Plot a interaction heatmap.
PlotHeatmap(
object,
data = c("strength", "pvalue", "data"),
which.cell = NULL,
which.gene = NULL,
aggregate = c("none", "cell", "gene"),
counted = FALSE,
selected = FALSE,
scale = c("none", "cell", "gene"),
scale_max = Inf,
color = "RdBu",
color.bins = 7,
order = TRUE,
order.dist = "minkowski",
p = 1,
filter = FALSE,
low.cutoff = -Inf,
high.cutoff = Inf,
return.data = FALSE,
Rowv = NA,
Colv = NA,
trace = "none",
margins = c(10, 10),
na.color = "black",
key = TRUE,
show.text = TRUE,
...
)
Matchmaker object.
Data to plot. Default is interaction strength.
strength, Interaction strength.
pvalue, Interaction p value.
data, expression data.
Interacting cell type name (saperated by '|' i.e 'DC|Mac') or index to plot. Default is NULL.
Interacting gene name (saperated by '_' i.e 'CSF1_CSF1R') or index to plot. Default is NULL.
Type of aggregation used. Default is none.
none, no aggregation.
cell, aggregated by cell-cell interactions.
gene, aggregated by ligand-receptor pairs.
Aggregate interactions counts instead of strengths. Default is FALSE.
Use selected data if calculated. Default is FALSE.
Scale and center data. Default is none.
none, no scaling.
cell, scale data by cell (row).
gene, scale data by gene (column).
Maximum cutoff for scaled data. Default is Inf.
Color palette name. Default is "RdBu", high values are in red and low values in blue. See details brewer.pal
.
Number of differen colors in pallete. Default is 7. See detail brewer.pal
.
Whether to order the input data. Default is TRUE. See details seriate
.
Distance measure to be used. Default is "minkowski". See details dist
.
Power of Minkowski distance Default is 1, aka Manhattan distance. See details dist
.
Whether to filter the input data based on low.cutoff and high.cutoff. Default is FALSE.
Lower cutoff bound below which will be removed. Default is negative infinity.
Upper cutoff bound above which will be removed. Default is positive infinity.
Whether to return the data used to plot. Default is FALSE.
Whether to hierarchical cluster the rows. Default is NA. See details heatmap.2
.
Whether to hierarchical cluster the columns Default is NA. See details heatmap.2
.
Whether to show the trace line. Defaults is none. See details heatmap.2
.
Plot margins. Defaults is c(10,10) See details heatmap.2
.
Color for missing values (NAs). Defaults is black. See details heatmap.2
.
Whether to show the key. Defaults is TRUE. See details heatmap.2
.
Whether to show title, x-axis and y-axis text. Defaults is TRUE.
Additioanl arguments passed to heatmap.2
.
Plot a heatmap and optionally return the data used to generate the plot.
if (FALSE) {
PlotHeatmap(object, data = "strength", aggregate = "row")
}