View source: R/structurePlot.R
structurePlot | R Documentation |
Plot Q-matrix from a call to structure
or
clumpp
.
structurePlot( q.mat, pop.col = 3, prob.col = 4, sort.probs = TRUE, label.pops = TRUE, col = NULL, horiz = TRUE, type = NULL, legend.position = c("top", "left", "right", "bottom", "none"), plot = TRUE )
q.mat |
matrix or data.frame of assignment probabilities. |
pop.col |
column number identifying original population designations. |
prob.col |
column number of first assignment probabilities to first
group. It is assumed that the remainder of columns
( |
sort.probs |
logical. Sort individuals by probabilities within
populations? If |
label.pops |
logical. Label the populations on the plot? |
col |
colors to use for each group. |
horiz |
logical. Plot bars horizontally. |
type |
either |
legend.position |
the position of the legend ( |
plot |
display plot? |
invisibly, the ggplot object
Eric Archer eric.archer@noaa.gov
structure
, clumpp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.