Simulate multivariate evolutionary sequence data that evolve according to an Unbiased Random Walk
Source:R/sim.multi.URW.R
sim.multi.URW.Rd
Function to simulate multivariate evolutionary sequence data that evolve according to an Unbiased Random Walk
Arguments
- ns
number of samples in time-series
- anc
the ancestral trait values
- R
the drift matrix
- vp
within-population trait variance
- nn
vector of the number of individuals in each sample (identical sample sizes for all time-series is assumed)
- tt
vector of sample ages, increases from oldest to youngest
Examples
## Create a multivariate dataset
data_set<-sim.multi.URW(40, R = matrix(c(0.2,0.1,0.1,0.3), nrow=2, byrow = TRUE))
## plot the data
plotevoTS.multivariate(data_set)