Description Usage Arguments Examples
Generate a barplot of a Structure or Admixture run.
1  | plotTreeBar(x, facet = TRUE, dendro = NULL, cut = NULL)
 | 
x | 
 a single cluster run object of type   | 
facet | 
 whether or not to split the barplot by cluster. This is recommended.  | 
dendro | 
 an object of class 'hclust' (defaults to hclust with average linkage)  | 
cut | 
 an integer vector output by 'cutree' (defaults to cutree k=ncols(Q))  | 
1 2 3 4 5 6 7 8 9  | # Read file using K = 6 and plot results
k6_data <- exampleStructure("barplot")
# our facetted structure plot with tree
plotTreeBar(k6_data)
# standard 'structure' bar plot with tree
plotTreeBar(k6_data, facet = FALSE)
# Admix example
k3_data <- exampleAdmixture()[[3]]
plotTreeBar(k3_data)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.