Description Usage Arguments Details Examples
Plot principal coordinates from Q-matrix, struct or admix objects
1 |
x |
a Q-matrix of probability memberships, or |
method |
(default = NULL) string either 'nnd' or 'jsd' valid only for |
"nnd" uses the nucleotide distance matrix estimated by STRUCTURE to construct the principal coordinates, sizing the points by the expected heterozygosity within a cluster. "jsd" produces a principal coordinates from the Jensen Shannon Divergence metric as used by the 'ldavis' package and is the default for Q-matrix or admix objects. By default using plotMDS on a struct object will produce principal coordinates on the clusters themselves rather than within samples.
1 2 3 4 5 6 7 | # struct example
k6_data <- exampleStructure("barplot")
plotMDS(k6_data)
plotMDS(k6_data, method = "jsd")
# admix example
k3_data <- exampleAdmixture()[[3]]
plotMDS(k3_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.