## Data from Day et al. 2011
data("kommos", package = "folio") # Coerce to compositional data
kommos <- remove_NA(kommos, margin = 1) # Remove cases with missing values
coda <- as_composition(kommos, groups = 1) # Use ceramic types for grouping
## Log-Ratio Analysis
X <- pca(coda)
## Biplot
biplot(X)
## Explore results
viz_individuals(X)
viz_variables(X)
Run the code above in your browser using DataLab