Description Usage Arguments Value Author(s) See Also Examples
This function is intented to plot reticulate phylogenetic data (e.g. hyplotype ot genotype networks, "minimum spanning trees"). It is in an eraly state of development - use with care!
1 2 3 4 5 |
m |
A binary matrix of node connection: 1 means there is an edge between node[m] and node[n]; 0 means no edge. |
freq |
A named vector of haplotype frequencies; if omitted the frequency of each haplotype is taken to be 1. |
spread |
|
rotate |
A numeric vector of length one: the angle of clock-wise rotation of the whole plot. |
mirror |
Logical: if |
freqmode |
Currently not implemented. |
loc |
Currently not implemented. |
locorder |
Currently not implemented. |
cex |
|
col |
|
piecolrev |
|
contrast |
|
border |
|
xshift |
|
yshift |
|
replace.names |
Logical: if |
stp |
Currently not implemented. |
modify |
Currently not implemented. |
Currently no value implemented.
Christoph Heibl
1 2 3 4 5 6 7 8 9 10 | data(woodmouse)
mst <- mst(dist.dna(woodmouse))
plotNetwork(mst, mirror = TRUE)
plotNetwork(mst, replace.names = TRUE)
# include information about frequency of haplotypes
# -------------------------------------------------
freq <- c(1, 1, 7, 2, 2, 3, 3, 1, 1, 4, 1, 1, 1, 1, 2)
names(freq) <- rownames(mst)
plotNetwork(mst, freq = freq, replace.names = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.