# roxygen generated flag
options(R_CHECK_RUNNING_EXAMPLES_=TRUE)
# generate a synthetic dataset with known classes
n <- 50; counts <- c(5, 5, 8);
V <- syntheticNMF(n, counts)
# perform a 3-rank NMF using the default algorithm
res <- nmf(V, 3)
basismap(res)
coefmap(res)
Run the code above in your browser using DataLab