Perform a PCA and plot the result
1 |
args |
list of arguments. Mandatory argument : a data.frame 'df' Other arguments can include : 'stat_var' : names of numeric columns used to perform the PCA. All numeric variables are used by default. 'PCx' : x axis variable ("PC1" by default) 'PCy' : y axis variable ("PC2" by default) 'color_var' : name of the column used to color points 'label_var' : name of the column used to label points 'scale' : logical; scale values by variable before performing the PCA |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.