| nmf.rrr.signed.heatmap | R Documentation |
Displays the factor blocks of a nmfae.signed fit as
side-by-side heatmaps. Non-negative blocks (X_1, C_{+}, C_{-},
X_2) use the white-orange-red palette; the signed combined
bottleneck C = C_{+} - C_{-} is rendered with a diverging
blue-white-red palette so positive and negative weights are visually
distinguishable.
nmf.rrr.signed.heatmap(
x,
Y1.label = NULL,
X1.label = NULL,
X2.label = NULL,
Y2.label = NULL,
palette.pos = NULL,
palette.signed = NULL,
show.C = TRUE,
...
)
x |
An object of class |
Y1.label |
Character vector for rows of |
X1.label |
Decoder basis labels. |
X2.label |
Encoder basis labels. |
Y2.label |
Input variable labels. |
palette.pos |
Palette for non-negative blocks. Default white-orange-red. |
palette.signed |
Palette for signed |
show.C |
Logical. If |
... |
Not used. |
Invisible NULL. Called for its side effect (plot).
This function is experimental. The interface may change in future versions.
Ding, C. H. Q., Li, T., & Jordan, M. I. (2010). Convex and semi-nonnegative matrix factorizations. IEEE Transactions on Pattern Analysis and Machine Intelligence, 32(1), 45–55.
nmfae.signed, nmfae.heatmap
set.seed(1)
Y1 <- matrix(abs(rnorm(12)), 3, 4)
Y2 <- matrix(abs(rnorm(20)), 5, 4)
res <- nmf.rrr.signed(Y1, Y2, rank1 = 2, rank2 = 2, maxit = 200)
nmf.rrr.signed.heatmap(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.