Produces a Graphviz DOT script visualizing the structure of an NMF model (\(Y \approx X C A\)) or its simplified forms.
Supported visualization types:
"YX" — Standard NMF view: latent factors \(X\) map to observations \(Y\).
"YA" — Direct regression view: covariates \(A\) map directly to \(Y\)
using the combined coefficient matrix \(X C\).
"YXA" — Full tri-factorization: \(A \rightarrow C \rightarrow X \rightarrow Y\).
Edge widths are scaled by coefficient magnitude, and nodes with no edges above the threshold are omitted from the visualization.
nmfkc.DOT(
x,
type = c("YX", "YA", "YXA"),
threshold = 0.01,
rankdir = "LR",
fill = TRUE,
weight_scale = 5,
weight_scale_ax = weight_scale,
weight_scale_xy = weight_scale,
weight_scale_ay = weight_scale,
Y.label = NULL,
X.label = NULL,
A.label = NULL,
Y.title = "Observation (Y)",
X.title = "Basis (X)",
A.title = "Covariates (A)"
)The return value from nmfkc, containing matrices
X, B, and optionally C.
Character string specifying the visualization style:
one of "YX", "YA", "YXA".
Minimum coefficient magnitude to display an edge.
Graphviz rank direction (e.g., "LR", "TB").
Logical; whether nodes should be drawn with filled shapes.
Base scaling factor for edge widths.
Scaling factor for edges \(A \rightarrow X\) (type "YXA").
Scaling factor for edges \(X \rightarrow Y\).
Scaling factor for edges \(A \rightarrow Y\) (type "YA").
Optional character vector for labels of Y nodes.
Optional character vector for labels of X (latent factor) nodes.
Optional character vector for labels of A (covariate) nodes.
Cluster title for Y nodes.
Cluster title for X nodes.
Cluster title for A nodes.
A character string representing a Graphviz DOT script.
nmfkc