plotRers: Plot the residuals reflecting the relative evolutionary rates...

View source: R/plottingFuncs.R

plotRersR Documentation

Plot the residuals reflecting the relative evolutionary rates (RERs) of a gene across species present in the gene tree

Description

Plot the residuals reflecting the relative evolutionary rates (RERs) of a gene across species present in the gene tree

Usage

plotRers(
  rermat = NULL,
  index = NULL,
  phenv = NULL,
  rers = NULL,
  method = "k",
  xlims = NULL,
  plot = 1,
  xextend = 0.2,
  sortrers = F
)

Arguments

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 tree2Paths or foreground2Paths

Value

A plot of the RERs with foreground species labelled in red, and the rest in blue


nclark-lab/RERconverge documentation built on March 2, 2024, 8:51 a.m.