Learn R Programming

polymapR (version 1.1.5)

PCA_progeny: Perform a PCA on progeny

Description

Principal component analysis in order to identify individuals that deviate from the population.

Usage

PCA_progeny(dosage_matrix, highlight = NULL, colors = NULL, log = NULL)

Arguments

dosage_matrix

An integer matrix with markers in rows and individuals in columns.

highlight

A list of character vectors specifying individual names that should be highlighted

colors

Highlight colors. Vector of the same length as highlight.

log

Character string specifying the log filename to which standard output should be written. If NULL log is send to stdout.

Details

Missing values are imputed by taking the mean of marker dosages per marker.

Examples

Run this code
data("ALL_dosages")
PCA_progeny(dosage_matrix=ALL_dosages, highlight=list(c("P1", "P2")), colors="red")

Run the code above in your browser using DataLab