plotTreeBar: Generate a barplot of a Structure or Admixture run.

Description Usage Arguments Examples

Description

Generate a barplot of a Structure or Admixture run.

Usage

1
plotTreeBar(x, facet = TRUE, dendro = NULL, cut = NULL)

Arguments

x

a single cluster run object of type struct or admix or Q-matrix

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))

Examples

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)


Search within the starmie package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.