manip_var_of | R Documentation |
Find the column number of the variable with the rank
-ith largest
contribution of the basis
.
Useful for identifying a variable to change the contribution of in a manual
tour, it's manip_var
argument.
manip_var_of(basis, rank = 1)
basis |
Numeric matrix (p x d), orthogonal liner combinations of the variables. |
rank |
The number, specifying the variable with the |
Numeric scalar, the column number of a variable.
Other manual tour adjacent functions:
create_manip_space()
,
interpolate_manual_tour()
,
manual_tour()
,
rotate_manip_space()
dat <- scale_sd(wine[, 2:6])
bas <- basis_pca(dat)
manip_var_of(basis = bas) ## Variable with the largest contribution
manip_var_of(basis = bas, rank = 5) ## Variable with 5th-largest contribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.