EmbedFeatures: Embeds features relative to factor coordinates

View source: R/swne_plotting.R

EmbedFeaturesR Documentation

Embeds features relative to factor coordinates

Description

Embeds features relative to factor coordinates

Usage

EmbedFeatures(
  swne.embedding,
  feature.assoc,
  features.embed,
  alpha.exp = 1,
  n_pull = NULL,
  scale.cols = T,
  overwrite = T
)

Arguments

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

Value

swne.embedding with feature coordinates (feature.coords)


yanwu2014/swne documentation built on Aug. 5, 2023, 4:42 a.m.