Plot the RRphylo output onto the phylogenetic tree
Plot the RRphylo output onto the phylogenetic tree
This function generates customized functions to plot the phylogenetic tree (as returned by RRphylo) with branches colored according to phenotypic values or phenotypic evolutionary rates.
plotRR(RR,y,multivariate=NULL)
Arguments
RR: an object produced by RRphylo.
y: the vector/matrix of phenotypic values used to perform RRphylo.
multivariate: if RRphylo was performed on multivariate data, this argument indicates whether individual rates for each variables (= "multiple.rates") or the norm2 vector of multivariate rates (= "rates") should be plotted.
object. The usage is: ...$plotRRphen(variable=NULL,tree.args=NULL,color.pal=NULL,colorbar.args=list()), where variable is the index or name of the variable to be plotted in case of multivariate data, tree.args is a list of further arguments passed to the function plot.phylo plus a logical indicating whether the tree should be ladderized before plotting (see examples below), color.pal is a function to generate the color palette, and colorbar.args is a list of further arguments passed to the function colorbar (if = NULL the bar is not plotted).
plotRRrateschartsevolutionaryratevaluesalongthetreebranches.Theusageisidenticalto‘plotRRphen. In case of multivariate data and multivariate = "rates", the argument variable` can be left unspecified.