Calculate the lambda factor to scale biplot dimensions.
The code is a snippet of biplot.princomp
).
1 | get_lambda(sdev, n.obs, dimensions = 2, scale = 1, pc.biplot = FALSE)
|
sdev |
Data frame containing the stardand deviations along n dimensions |
n.obs |
number of observations (rows) in the original data |
dimensions |
The number of dimensions |
scale |
Numeric, the value defining the
degree in which distances between observations have
priority over distances between variables
(0 = observation-focused, 1 = variable-focused).
It corresponds to the argument |
pc.biplot |
Character, indicating the type of
biplot transformation of data: "default" and
"pc.biplot", corresponding to the transformations
performed in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.