| pca_func | R Documentation | 
Beautiful PCA plot
pca_func( data, groups, title = "", print_ellipse = TRUE, center = TRUE, scale = TRUE )
| data | a sample-by-measures numeric matrix. Required | 
| groups | a character vector of sample group assignment. Required | 
| title | a title for the graph. Default: none | 
| print_ellipse | highlight groups by ellipses, Default: TRUE | 
| center | center the data for PCA, see ?prcomp. Default: TRUE | 
| scale | scale the data for PCA, see ?prcomp. Default: TRUE | 
ggplot2 object
Source: https://shiring.github.io/machine_learning/2017/01/15/rfe_ga_post
## Not run: library(ellipse) library(ggplot2) pca_func(iris[, 1:3], groups = iris$Species, title = "Iris") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.