summary-nmf-method: Summarize NMF factors

summary,nmf-methodR Documentation

Summarize NMF factors

Description

summary method for class "nmf". Describes metadata representation in NMF factors. Returns object of class nmfSummary. Plot results using plot.

Usage

## S4 method for signature 'nmf'
summary(object, group_by, stat = "sum", ...)

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

Arguments

object

an object of class "nmf", usually, a result of a call to nmf

group_by

a discrete factor giving groupings for samples or features. Must be of the same length as number of samples in object$h or number of features in object$w.

stat

either sum (sum of factor weights falling within each group), or mean (mean factor weight falling within each group).

...

arguments passed to or from other methods

x

nmfSummary object, the result of calling summary on an nmf object

Value

data.frame with columns group, factor, and stat


zdebruine/RcppML documentation built on Sept. 13, 2023, 11:44 p.m.