PSR: Creates a phylogenetic signal-representation (PSR) curve for...

Description Usage Arguments Value Author(s) References See Also Examples

Description

Phylogenetic signal-representation (PSR) curve, built upon phylogenetic eigenvector regression (PVR). Sequential PVR models are fitted after successively increasing the number of eigenvectors and plotting their R2 against the accumulated eigenvalues. The PSR area, expressing deviations from Brownian motion, is strongly correlated with Blomberg's K-statistics, so nonlinear PSR curves reveal if traits are evolving at a slower or higher rate than expected. The PSR area is also correlated with phylogenetic half-life under an OU process, so both methods describe the relationship between interspecific variation and time since divergence among species shape.

Usage

1
PSR(x, trait = NULL, null.model = FALSE, Brownian.model = FALSE, times = 1000)

Arguments

x

A object of class PVR (created using PVRdecomp function).

trait

A vector, data frame or matrix that contains contiuous or binary traits sets (for data frames and matrices, each column must represent a trait set). For now, only the first colunm will be used.

null.model

Logical. Should the function estimates the null expectation for the PSR area. Default is FALSE.

Brownian.model

Logical. Should the function estimates the Brownian (neutral) expectation for the PSR area. Default is FALSE.

times

Number of iterations used in null.model and Brownian.model.

Value

PSR function returns a object of (S4) class PSR that extends the (S4) class PVR, by adding: a PSR slot that contains the area (and p if null.model = TRUE) for each trait set, the cumulative eigenvalues and R2 that determine the curve; a slot with the null and neutral expectations (if any).

Author(s)

Santos, T; Diniz-Filho, J.A.F.; Rangel, T.F.; Bini, L.M.

References

Diniz-Filho, J.A.F., Sant'Ana, C.E.R. and Bini, L.M. (1998). An eigenvector method for estimating phylogenetic inertia. Evolution 52:1247-1262.

Diniz-filho, J.A.F., Rangel, T.F., Santos, T. and Bini, L.M. (2012). Exploring patterns of interespecific variation in quantitative traits using sequential phylogenetic eigenvector regressions. Evolution, 66(4):1079-1090.

Diniz-filho, J.A.F., Bini, L.M., Rangel, T.F., Morales-Castilla, I., Olalla-Tarraga, M.A., Rodriguez, M.A. and Hawkins, B.A. (2012). On the selection of phylogenetic eigenvectors for ecological analyses. Ecography, 35:239-249.

See Also

PVR, PVRdecomp, PSRplot, VarPartplot

Examples

1
2
3
4
5
6
7
8
9
library(splancs)
#Creating a 10 tips ultrametric random phylogeny
library(ape)
tree <- rcoal(10)
#Decomposing phylogenetic distance matrix derived from tree into a set of orthogonal vectors
x <- PVRdecomp(tree)
trait <- runif(10)
y <- PSR(x, trait)
summary(y)

PVR documentation built on May 2, 2019, 3:23 a.m.