plot.predict.nmfae: Plot method for predict.nmfae objects

View source: R/nmfae.R

plot.predict.nmfaeR Documentation

Plot method for predict.nmfae objects

Description

For type = "response": if actual values Y_1 were stored, displays an observed-vs-predicted scatter plot with R^2 in the title. Otherwise, displays the predicted matrix as a heatmap.

For type = "class": if actual classes were stored, displays a confusion matrix heatmap with accuracy (ACC) in the title.

Usage

## S3 method for class 'predict.nmfae'
plot(x, ...)

Arguments

x

An object of class "predict.nmfae" returned by predict.nmfae.

...

Additional graphical parameters passed to plot or image.

Value

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

See Also

predict.nmfae

Examples


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


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