rTraitContWeight: Traits Values Simulation

Description Usage Arguments Value

View source: R/utilities.R

Description

This function simulates the evolution of continuous characters along a phylogeny. Traits values can be more or less influenced by the provided model.

Usage

1
rTraitContWeight(tree, model = "BM", weight = 1, as.p4d = FALSE)

Arguments

tree

an object of class "phylo.

model

the model to use ("BM" or "OU").

weight

a numeric vector with values ranging between 0 and 1 giving the balance between pure random evolution and the selected model.

as.p4d

logical. Should the phylogenetic tree and the simulated data coerced to a phylo4d object?

Value

An object of class phyloSimSignal.


phylosignal documentation built on May 30, 2017, 12:50 a.m.

Search within the phylosignal package
Search all R packages, documentation and source code