View source: R/swne_plotting.R
EmbedSWNE | R Documentation |
Embeds NMF factors and samples in 2 dimensions
EmbedSWNE(
H,
SNN = NULL,
alpha.exp = 1,
snn.exp = 1,
n_pull = NULL,
proj.method = "sammon",
dist.use = "cosine",
snn.factor.proj = T
)
H |
NMF factors (factors x samples) |
SNN |
Shared nearest neighbors matrix (or other similarity matrix) |
alpha.exp |
Increasing alpha.exp increases how much the NMF factors "pull" the samples |
snn.exp |
Decreasing snn.exp increases the effect of the similarity matrix on the embedding |
n_pull |
Number of factors pulling on each sample. Must be >= 3 |
proj.method |
Method to use for projecting factors. Currently only supports "sammon" |
dist.use |
Similarity function to use for calculating factor positions. Options include pearson (correlation), IC (mutual information), cosine, euclidean. |
A list of factor (H.coords) and sample coordinates (sample.coords) in 2D
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.