Learn R Programming

PopGenHelpR (version 1.3.2)

Q_dat: A list representing a q-matrix and the locality information associated with the qmatrix

Description

List with two elements

Usage

data(Q_dat)

Arguments

Format

A list with two elements:

Qmat

A q-matrix with 6 columns and 30 rows, the first column lists the sample name and the remaining 5 represent the contribution a genetic cluster to that individuals ancestry

Loc_dat

The locality information for each individual in the q-matrix

...

Examples

Run this code
# \donttest{
data(Q_dat)
Qmat <- Q_dat[[1]]
rownames(Qmat) <- Qmat[,1]
Loc <- Q_dat[[2]]
Test_all <- Ancestry_barchart(anc.mat = Qmat, pops = Loc, K = 5,
plot.type = 'all',col = c('#d73027', '#fc8d59', '#e0f3f8', '#91bfdb', '#4575b4'))# }

Run the code above in your browser using DataLab