Skip to contents

Calculate the mean weight of samples in discrete and unique groups to each factor

Usage

MetadataSummary(h, factor_data, reorder = TRUE)

# S3 method for nmf_metadata_summary
plot(x, ...)

MetadataHeatmap(x)

Arguments

h

matrix giving factors as rows and samples as columns

factor_data

a factor of the same length as the number of columns in h

reorder

sort results by proportion in each group (uses hclust if >2 groups)

x

result of MetadataSummary

...

not implemented

Value

data.frame of mean weights for each sample group within each factor of class nmf_metadata_summary. Use the plot method to visualize.