RenameFactors: Function for renaming NMF factors to something more...

Description Usage Arguments Value

View source: R/swne_plotting.R

Description

Function for renaming NMF factors to something more interpretable. If the NMF factor name is the empty string, "", then the NMF factor will not be plotted

Usage

1
RenameFactors(swne.embedding, name.mapping, set.empty = T)

Arguments

swne.embedding

List of NMF and sample coordinates from EmbedSWNE

set.empty

If true, any old NMF names that weren't renamed are set to the empty string

new.names

Named character vector with the old values as names and the new values as values

Value

SWNE embedding with NMFs renamed.


yanwu2014/swne documentation built on Dec. 7, 2018, 8:55 a.m.