visualize\(data\)similarity
visualize pre-computed similarity matrices
Description
Internal helper for similarity heatmaps. Set context = “obs” to work on data$obsp matrices (observation similarity) and context = “mod” to work on data$modp matrices (model similarity). Requires installed packages .pkg ComplexHeatmap and .pkg circlize.
Usage
.visualize.similarity(
data,
key,
type = "heatmap",
cluster = TRUE,
label.by = NULL,
cols = colorRampPalette(c("darkgreen", "white", "darkorchid4")),
n.breaks = 11L,
symmetrize.range = FALSE,
center.zero = FALSE,
drop.na = TRUE,
context = c("obs", "mod"),
...
)
Arguments
data
|
A |
key
|
Name of the similarity matrix stored in |
type
|
Plot type. Currently only |
cluster
|
Logical; whether to cluster rows and columns. |
label.by
|
Optional column name from |
cols
|
A |
n.breaks
|
Integer number of color breaks sampled from |
symmetrize.range
|
Logical; if |
center.zero
|
Logical; if |
drop.na
|
Logical; drop rows/columns that are entirely |
context
|
Character; |
…
|
Additional arguments passed to |