Learn R Programming

starmie (version 0.1.2)

plotMultiK: Generate a barplot for multiple values of K..

Description

Generate a barplot for multiple values of K..

Usage

plotMultiK(x, populations = NULL, plot = TRUE)

Arguments

x
a structList or admixList object or a list of Q-matrices.
populations
a data.frame that contains the sample number as the first column and the population as the second.
plot
if FALSE returns a data.frame for customised plots

Examples

Run this code
cluster_runs <- exampleStructure("multiple_runs")
# Generate barplot
plotMultiK(cluster_runs[3:5])

Run the code above in your browser using DataLab