This function generates customized functions to produce histograms and lollipop charts of the RRphylo rates computed for a given clade as compared to the rates computed for the rest of the tree.
plotRates(RR,node)
Arguments
RR: an object produced by RRphylo.
node: the node subtending the clade of interest.
Returns
The function returns a list of functions:
plotHistreturnsthehistogramsofrates(inlnabsolutevalues)computedforthefocalcladeagainstratescomputedtherestofthetree.Theusageis:‘...plotHist(hist.args=list(col1,col2),legend.args=list()), where legend.argsis a list of additional arguments passed to the functionlegend(if= NULLthe legend is not plotted) andhist.argsis a list of further arguments passed to the functionplot.histogram. hist.args default arguments include histogram colors for background rates (col1) and rates of the clade under inspection (col2`).
plotLollipopreturnsthelollipopchartoftheratesofindividualbranchesofthefocalcladecollatedinincreasingratevalue,andcontrastedtotheaverageratecomputedovertherestofthetreebranches(theverticalline).Theusageis:‘...plotLollipop(lollipop.args=NULL,line.args=NULL), where lollipop.argsis a list of further arguments passed to the functionlollipoPlotandline.argsis a list of additional arguments passed to the functionline`. This function additionally returns the vector of rates for the focal clade, collated in increasing order.