Plot a consensus rank-selection (nmfkc.consensus) object
Source:R/nmfkc.consensus.R
plot.nmfkc.consensus.RdTwo views of a nmfkc.consensus result:
type = "criteria"(default): the stability curvescophenetic(blue) anddispersion(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 requestedrank, reordered by average-linkage hierarchical clustering of \(1 - \bar C\) (blue = 0 / different cluster, red = 1 / same cluster). Requireskeep.consensus = TRUEat compute time.
Usage
# 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,
...
)Arguments
- x
An object of class
"nmfkc.consensus".- type
"criteria"or"heatmap".- rank
For
type = "heatmap", the rank(s) to display.NULL(default) shows every rank stored inx.- mfrow
Panel layout for multiple heatmaps, as
c(nrow, ncol).NULL(default) usesn2mfrowfor a near-square grid.- mar
Per-panel margins
c(b, l, t, r)for the heatmap view.NULL(default) uses tight margins for a grid and wider margins (for sample labels) when a single rank is shown.- col
Heatmap colour palette (length-50 blue-to-red by default).
- main
Plot title for the
"criteria"view (heatmap panels are titled per rank).- ...