Description Usage Arguments Value Examples
This function implements biplot for prcomp
objects.
1 2 | biplot_color(x, y, rank = TRUE, ties_method = c("max", "min", "first",
"last", "random"), choices = 1:2, expand = 1, ...)
|
x |
|
y |
numeric. Quantitative values used to color the points. If rank is FALSE, all values must be positive integers and less than or equal to the length of y. |
rank |
logical. If TRUE (default) y will be transformed by the rank() function |
ties_method |
character. ties.method used by the rank() function |
choices |
numeric. 2 principal components to plot. Default to first two PCs. |
expand |
numeric. value used to adjust the spread of the arrows relative to the points. |
... |
arguments passed to plot. |
Invisibly returns scaled point coordinates used in plot.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.