Description Usage Arguments Examples
Function uses coloured polygons to illustrate which nucleotides are present in each sequence at each position
1 2 3 4 5 6 7 8 9 10 11 12 |
tree1 |
an object of class "phylo" to compared to |
tree2 |
an object of class "phylo" to compared to |
onlyIfDifferent |
a boolean variable, if |
connectingLine.col |
colour of the lines connecting tips. Defaults to black |
connectingLine.lwd |
width of the lines connecting tips. Defaults to 1 |
connectingLine.lty |
type of the lines connecting tips. Defaults to 1 (solid) |
offsetProp |
offset value to displace starts of connecting lines from tips, set as the proportion of plotting window. Defaults to |
leftMargins |
margin parameters for the left tree plot. Defaults to |
rightMargins |
margin parameters for the right tree plot. Defaults to |
1 2 3 4 5 6 7 8 9 10 11 12 | # Set the seed
set.seed(76263)
# Create a random phylogeny
tree <- ape::rtree(n=50, rooted=TRUE)
# Rotate one of the nodes in the phylogeny - with tip labels it
rotated <- ape::rotate(tree, node=c("t35", "t34"))
# Compare the random and rotated phylogeny
tanglePlot(tree, rotated, connectingLine.col="red",
connectingLine.lty=2, show.tip.label=TRUE, offsetProp=0.02)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.