Description Usage Arguments Value Author(s) Examples
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
1 | structure_plot(object, ...)
|
object |
S3 class deStruct object, this function will plot the 5th element "individual_ancestry_frequencies" |
... |
no additional arguments are currently implemented |
gg object (Stacked bar plot) that can be manipulates using ggplo2.
Joyce Njuguna and Marlee Labroo
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.