## A simple Brownian motion trait (default)
make.traits()
## Two independent Brownian motion traits
make.traits(n = 2)
## Two different traits with different process
## (Brownian motion and Ornstein-Uhlenbeck)
make.traits(process = list(BM.process, OU.process))
## A multidimensional Brownian motion trait with correlation
## and different starting points
my_correlations <- matrix(1/3, ncol = 3, nrow = 3)
(my_traits <- make.traits(n = 3, start = c(0, 1, 3),
process.args = list(Sigma = my_correlations)))
## Adding a Ornstein-Uhlenbeck trait to the previous trait object
make.traits(process = OU.process, trait.names = "OU_trait",
add = my_traits)
Run the code above in your browser using DataLab