Description Usage Arguments Value
Perform dimensionality reduction
1 2 3 4 5 6 7 8 9 10 11 | dim_reduction(
df,
yvar,
Ncells = NULL,
transformation = NULL,
y_trans = identity_trans(),
perplexity = 50,
dims = 2,
method = "tSNE",
check_duplicates = FALSE
)
|
df |
a data.frame with only numeric variables. |
yvar |
names of df's variables used to perform dimensionality reduction |
Ncells |
Maximum number of cells without any NA values sampled from df. If NULL, all cells without any NA values are used |
transformation |
Named list of |
y_trans |
default |
perplexity |
t-SNE perplexity parameter (passed to |
dims |
Number of dimensions (passed to |
method |
Name of the method used. Either "tSNE" or "umap" |
check_duplicates |
logical. Checks whether duplicates are
present (passed to |
a data.frame with additionnal columns : "tSNE1" and "tSNE2" for method 'tSNE', "UMAP1" and "UMAP2" for method 'umap'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.