get.pca: Principle components analysis

Description Usage Arguments Value Examples

View source: R/get.pca.R

Description

Function to perform a principle component analysis

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
get.pca(
  population,
  path = NULL,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  coloring = "group",
  components = c(1, 2),
  plot = TRUE,
  pch = 1,
  export.color = FALSE
)

Arguments

population

Population list

path

Location were to save the PCA-plot

database

Groups of individuals to consider for the export

gen

Quick-insert for database (vector of all generations to export)

cohorts

Quick-insert for database (vector of names of cohorts to export)

coloring

Coloring by "group", "sex", "plain"

components

Default: c(1,2) for the first two principle components

plot

Set to FALSE to not generate a plot

pch

Point type in the PCA plot

export.color

Set to TRUE to export the per point coloring

Value

Genotype data for in gen/database/cohorts selected individuals

Examples

1
2

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.

Related to get.pca in MoBPS...