y: the multivariate phenotype used to perform search.conv.
variable: the index of result to plot. If convergence between clades is inspected, this is the position within the SC$'average distance from group centroids' vector of the clade pair to be plotted. In the case of convergence between states, this is the number of the line of SC$state.res where results for the state pair are returned.
RR: the object produced by RRphylo used to perform search.conv. This is not indicated if convergence between states is tested.
state: the named vector of tip states used to perform search.conv. This is not indicated if convergence between clades is tested.
aceV: phenotypic values at internal nodes to be provided if used to perform search.conv.
Returns
If convergence between clades was tested, plotConv returns a list of four functions:
‘plotHistTips’showsthemeanEuclideandistancecomputedbetweenphenotypicvectorsofallthetipsbelongingtotheconvergingcladesascomparedtothedistributionofdistancesbetweenallpossiblepairoftipsacrosstherestofthetree.Theusageis:‘...plotHistTips(hist.args=NULL,line.args=NULL), where hist.argsis a list of further arguments passed to the functionhist, and line.argsis a list of further arguments passed to the functionlines`.
ace.args=NULL,legend.args=list(),where plot.args is a list of further arguments passed to the function plot, chull.args is a list of further arguments passed to the function polygon, means.args and ace.args are lists of further argument passed to the function points to customize the dots representing the centroids and the ancestral phenotypes respectively, and legend.args
is a list of additional arguments passed to the function legend (if = NULL the legend is not plotted).
‘$plotTraitgram’ produces a modified traitgram plot (see package picante) highlighting the branches of the clades found to converge. The usage is: plotTraitgram(colTree=NULL,colNodes=NULL,...), where colTree
is the color to represent the traitgram lines not pertaining the converging clades, colNodes is the color (or the vector of colors) to represent the traitgram lines pertaining the converging clades, and ... are further arguments passed to the function plot to plot lines.
If convergence between states was tested, plotConv returns a list of two functions:
legend.args=list(), where plot.args is a list of further arguments passed to the function plot, chull.args is a list of further arguments passed to the function polygon, points.args
is a list of further argument passed to the function points, and legend.args is a list of additional arguments passed to the function legend (if = NULL the legend is not plotted).
‘$plotPolar’ produces a polar plot of the mean angle within/between state/s as compared to the 95
angles. The usage is: ...$plotPolar(polar.args=NULL,polygon.args=NULL,line.args=NULL), where polar.args is a list of further arguments passed to the function polar.plot to set the plot basics (i.e. radial.lim, start, and so on), polygon.args is a list of further arguments passed to the function polar.plot under the condition rp.type="p" (see plotrix::polar.plot for details) to set the angles distribution graphics, and line.args is a list of further arguments passed to the function polar.plot under the condition rp.type="r" to set the mean angle graphics.
Castiglione, S., Serio, C., Tamagnini, D., Melchionna, M., Mondanaro, A., Di Febbraro, M., Profico, A., Piras, P.,Barattolo, F., & Raia, P. (2019). A new, fast method to search for morphological convergence with shape data. PLoS ONE, 14, e0226949. https://doi.org/10.1371/journal.pone.0226949