nmf.rrr.heatmap: Heatmap visualization of nmfae factor matrices

View source: R/nmfae.R

nmf.rrr.heatmapR Documentation

Heatmap visualization of nmfae factor matrices

Description

nmfae.heatmap displays the three factor matrices X_1, \Theta, and X_2 as side-by-side heatmaps. This provides an alternative to DOT graph visualization, especially when Y_2 has many variables (e.g., kernel matrix).

Usage

nmf.rrr.heatmap(
  x,
  Y1.label = NULL,
  X1.label = NULL,
  X2.label = NULL,
  Y2.label = NULL,
  palette = NULL,
  ...
)

Arguments

x

An object of class "nmfae" returned by nmfae.

Y1.label

Character vector of output variable names (rows of X_1).

X1.label

Character vector of decoder basis labels (columns of X_1).

X2.label

Character vector of encoder basis labels (rows of X_2).

Y2.label

Character vector of input variable names (columns of X_2).

palette

Color palette vector. Default is white-orange-red (64 colors).

...

Not used.

Value

Invisible NULL. Called for its side effect (plot).

Lifecycle

This function is experimental. The interface may change in future versions; details are to be described in an upcoming paper.

See Also

nmfae, plot.nmfae, nmfae.DOT

Examples


set.seed(1)
Y <- matrix(runif(20), nrow = 4)
res <- nmf.rrr(Y, rank1 = 2)
nmf.rrr.heatmap(res)


nmfkc documentation built on July 14, 2026, 1:07 a.m.