pcaStructure: PCA on G

View source: R/Gmatrix.R

pcaStructureR Documentation

PCA on G

Description

Function to perform the PCA on the kinship matrix

Usage

pcaStructure(
  G,
  n.clusters = 3,
  plot.var = T,
  plot.pca = T,
  save.pca.plot = F,
  pca.plot.name = "PCA of G",
  ...
)

Arguments

G

Is the relationship matrix

n.clusters

The number of cluster to be solved over the kmeans algorithm

plot.var

Logial to indicate if the scree plot is displayed

plot.pca

Logical to indicate if the PCA plot is displayed with ggplot2

save.pca.plot

Logical to indicate if the PCA plot will be saved

pca.plot.name

Is the name of the file for the saved plot

...

Arguments passed to the ggsave function


leocrh/FPGC documentation built on Nov. 15, 2024, 2:46 a.m.