Description Usage Arguments Value
uses ggfortify and ggplot2's autoplot to make biplot. uses prcomp to calculate pca
1 2 3 |
data |
dataframe. Independant variable in rows, dependant variable in columns. Variable names in row and column names |
metadata |
dataframe. metadata for the independant variables rownames must match rownames in data |
colour |
string. column name in metadata to colour code score |
label |
logic. default TRUE. label score points |
loadings |
logic. default TRUE. When set, show loadings on biplot |
loadings.label |
logic. default TRUE. When set, label loadings |
loadings.label.colour |
string. default 'darkred' |
list of:
p_biplot
ggplot biplot
pcx
prcomp object.
pcx_summary
dataframe. summary of pca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.