| PlotQuartet | R Documentation | 
Draws a tree, highlighting the members of a specified quartet in colour.
PlotQuartet(tree, quartet, overwritePar = TRUE, caption = TRUE, ...)
tree | 
 A tree of class   | 
quartet | 
 A vector of four integers, corresponding to numbered leaves on the tree; or a character vector specifying the labels of four leaves.  | 
overwritePar | 
 Logical specifying whether to use existing   | 
caption | 
 Logical specifying whether to annotate each plot to specify whether the quartet selected is in the same or a different state to the reference tree.  | 
... | 
 Additional parameters to send to
  | 
PlotQuartet() returns invisible(), having plotted a tree in
which the first two members of quartet are highlighted in orange, and the
second two highlighted in blue.
Martin R. Smith (martin.smith@durham.ac.uk)
data("sq_trees")
oPar <- par(mfrow = c(3, 6), mar = rep(0.5, 4))
PlotQuartet(sq_trees, c(2, 5, 3, 8), overwritePar = FALSE)
par(oPar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.