structure_plot: Plots

Description Usage Arguments Value Author(s) Examples

Description

Visualize individual allele ancestries using a barplot, to delineate the likely level of population subdivision. The plot shows the proportion of individual ancestry from each cluster

Usage

1

Arguments

object

S3 class deStruct object, this function will plot the 5th element "individual_ancestry_frequencies"

...

no additional arguments are currently implemented

Value

gg object (Stacked bar plot) that can be manipulates using ggplo2.

Author(s)

Joyce Njuguna and Marlee Labroo

Examples

1
2
3
4
5
6
7
8
#import the example structure file installed with DeStruct
mypath <- system.file("extdata", "myresults_default50000k2r1_f", package = "deStructure")

#Run function deStruct on file
myDestructObject <- deStruct(mypath)

#make plots
structure_plot(myDestructObject)

labroo2/deStructure documentation built on May 8, 2019, 8:58 p.m.