Function for plotting the 3 principal components of a dataset. One can also add color labels to visualise cluster assignations.
1 |
X |
data matrix or data frame of size n x d, n observations and d features. d must be superior or equal to 3. |
label |
array of size n containing each cluster assignation for each observation. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.