View source: R/nmfkc.consensus.R
| plot.nmfkc.consensus | R Documentation |
Two views of a nmfkc.consensus result:
type = "criteria" (default): the stability curves
cophenetic (blue) and dispersion (red) against rank.
No "best" marker is drawn – a stable rank tends to be a coarse one,
so the curves are shown for inspection rather than as an optimum.
type = "heatmap": the consensus matrix of each requested
rank, reordered by average-linkage hierarchical clustering of
1 - \bar C (blue = 0 / different cluster, red = 1 / same
cluster). Requires keep.consensus = TRUE at compute time.
## S3 method for class 'nmfkc.consensus'
plot(
x,
type = c("criteria", "heatmap"),
rank = NULL,
mfrow = NULL,
mar = NULL,
col = grDevices::hcl.colors(50, "Blue-Red"),
main = NULL,
...
)
x |
An object of class |
type |
|
rank |
For |
mfrow |
Panel layout for multiple heatmaps, as
|
mar |
Per-panel margins |
col |
Heatmap colour palette (length-50 blue-to-red by default). |
main |
Plot title for the |
... |
Further arguments passed to the underlying
|
x, invisibly.
nmfkc.consensus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.