plotNetMDS | R Documentation |
This function plots a haplotype network using a layout calculated from an MDS performed on the pairwise distance matrix. The haplotypes have always the same positions for different networks.
plotNetMDS(net, d, k = 2, show.mutation = FALSE, col = NULL, font = 2, cex = 1)
net |
an object of class |
d |
an object of class |
k |
the number of dimensions of the plot (2 or 3). |
show.mutation |
a logical value: if |
col |
the colours of the links; by default, semi-transparent green. |
font |
the font used to print the labels; bold by default. |
cex |
the character expansion of the labels. |
NULL
Emmanuel Paradis
Paradis, E. (2017) Analysis of haplotype networks: the randomized minimum spanning tree method. Manuscript.
haploNet
data(woodmouse)
d <- dist.dna(woodmouse, "n")
net <- rmst(d)
plotNetMDS(net, d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.