surfaceSimulate(phy, type = "BM", param = 0, n_traits = NULL, dat = NULL,
vcv = NULL, hansenfit = NULL, shifts = NULL, n_shifts = NULL,
n_conv_shifts = NULL, n_regimes = NULL, n_per_regime = NULL,
no_nested = TRUE, optima = NULL, sample_optima = TRUE,
optima_distrib = NULL, optima_type = "rnorm", sigma_squared = NULL,
alpha = NULL, pshift_timefactor = NULL)phylo format on which to simulate data
"BM", "hansen-fit", and "hansen-paint" (see Details)
type="BM", an optional parameter to rescale the tree (see Details)
type = "hansen-fit")
type = "hansen-paint"). If specified, n_shifts, n_conv_shifts, n_regimes and n_per_regime are all ignored
type = "hansen-paint")
type = "hansen-paint"). Either n_conv_shifts or n_regimes can be specified along with n_shifts, but not both
type = "hansen-paint"). Either n_conv_shifts or n_regimes can be specified along with n_shifts, but not both
type = "hansen-paint"). If specified, the vector length determines n_regimes, and the sum of the values determines n_shifts, and the number of entries >1 determines n_conv_shifts
type = "hansen-paint"; defaults to TRUE)
type = "hansen-fit"; defaults to TRUE)
optima_type). Each column is a two-element vector c(A, B) for the trait.
optima_distrib. Can be one of "rnorm" (default; distribution is normal with mean=A, sd=B), "runif" (distribution is uniform with center=A, width=B), or "even" (optima are evenly spaced with spacing=B, then randomized)
pshift_timefactor times higher at the tips than at the root
1)>type = "BM"):
"BM", "hansen-fit", or "hansen-paint".If type = "BM", simulation uses the sim.char function in geiger, with Brownian rate sigma_squared. If type = "BM", param values other than 0 will transform the tree based on the Early Burst (param < 0) or single-peak Ornstein-Uhlenbeck (param > 0) model before simulating, causing trait disparity to be concentrated earlier or later in the tree, respectively
If type = "hansen-fit", an existing hansentree object is used as the basis of simulation using ouch functions, optionally with new parameter values
If type = "hansen-paint", a new hansentree object is produced for simulation using ouch functions, with specified parameter values and numbers of regimes and/or regime shifts
surfaceForward, surfaceBackward, surfaceTreePlot, surfaceTraitPlot