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

View source: R/swne_plotting.R

RenameFactorsR Documentation

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

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

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 Aug. 5, 2023, 4:42 a.m.