| phyloSim | R Documentation |
This function simulates different phylogenetic signal statistics for a given phylogenetic tree along a gradient of Brownian Motion influence.
phyloSim(
tree,
methods = c("all", "I", "Cmean", "Lambda", "K", "K.star"),
nsim = 99,
reps = 999,
W = NULL,
model = "BM",
pb = TRUE
)
tree |
a |
methods |
a character vector giving the methods to compute phylogenetic signal (see Details). |
nsim |
a numeric value. Number of simulated traits at each step in the gradient. |
reps |
a numeric value. Number of repetitions for the estimation of p.values with randomization. |
W |
an optional matrix of phylogenetic weights to compute Moran's I. By default the matrix
is computed with the function |
model |
the model to use for traits simulation (only " |
pb |
a logical. Should a progress bar be printed? (default |
By default, the methods argument is set to "all" and all the available methods are used.
The user can specify which method(s) to use. Possible values are
"I", "Cmean", "Lambda", "K" and "K.star",
see phyloSignal for further details.
An object of class phylosim.
phyloSimSignal.
## Not run:
data(navic)
psim <- phyloSim(navic)
plot(psim)
plot.phylosim(psim, what = "pval", stacked.methods = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.