View source: R/swne_plotting.R
EmbedFeatures | R Documentation |
Embeds features relative to factor coordinates
EmbedFeatures(
swne.embedding,
feature.assoc,
features.embed,
alpha.exp = 1,
n_pull = NULL,
scale.cols = T,
overwrite = T
)
swne.embedding |
Existing swne embedding from EmbedSWNE |
feature.assoc |
Feature loadings or correlations (features x factors) |
features.embed |
Names of features to embed |
alpha.exp |
Increasing alpha.exp increases how much the factors "pull" the features |
n_pull |
Number of factors pulling on each feature. Must be >= 3 |
scale.cols |
Whether or not to scale the input columns to 0 - 1 |
overwrite |
Whether or not to overwrite any existing feature embedding |
swne.embedding with feature coordinates (feature.coords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.