View source: R/plottingFuncs.R
returnRersAsTree | R Documentation |
Produce a gene tree with branch lengths representing RERs and (optionally) display these RERs as branch labels
returnRersAsTree(
treesObj,
rermat,
index,
phenv = NULL,
rer.cex = 0.7,
tip.cex = 0.7,
nalab = "NA",
plot = T
)
treesObj. |
A treesObj created by |
rermat. |
A residual matrix, output of the getAllResiduals() function |
index. |
A character denoting the name of gene, or a numeric value corresponding to the gene's row index in the residuals matrix |
phenv. |
A phenotype vector returned by |
rer.cex. |
Numeric expansion for RER labels |
tip.cex. |
Numeric expansion for tip labels |
nalab. |
Label given to any NA RERs |
plot. |
Whether to produce a plot displaying the RERs on the gene tree |
An object of class "phylo" with edge lengths representing RERs for the given gene
If plot = TRUE, also displays a plot of the gene tree with edges labeled with RERs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.