plotMDS: Plot principal coordinates from Q-matrix, struct or admix...

Description Usage Arguments Details Examples

Description

Plot principal coordinates from Q-matrix, struct or admix objects

Usage

1
plotMDS(x, method = NULL)

Arguments

x

a Q-matrix of probability memberships, or struct or admix object

method

(default = NULL) string either 'nnd' or 'jsd' valid only for struct objects

Details

"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.

Examples

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)

Example output



starmie documentation built on May 1, 2019, 8:01 p.m.