Description Usage Arguments Value Examples
View source: R/DAISIE_format_IW.R
Formats island-wide simulation output into standard DAISIE list output
1 2 3 4 5 6 7 8 | DAISIE_format_IW(
island_replicates,
time,
M,
sample_freq,
verbose = TRUE,
trait_pars = NULL
)
|
island_replicates |
List output from
|
time |
Numeric defining the length of the simulation in time units. For examples, if an island is known to be 4 million years old, setting time = 4 will simulate the entire life span of the island; setting time = 2 will stop the simulation at the mid-life of the island. |
M |
Numeric defining the size of mainland pool, i.e. the number of species that can potentially colonize the island. |
sample_freq |
Numeric specifing the number of units times should be divided by for plotting purposes. Larger values will lead to plots with higher resolution, but will also run slower. |
verbose |
In simulation and dataprep functions a logical,
|
trait_pars |
A named list containing diversification rates considering
two trait states created by
|
List with CS DAISIE simulation output
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | island_replicates <- list()
island_replicates[[1]] <- DAISIE:::DAISIE_sim_core_constant_rate(
time = 5,
mainland_n = 1000,
pars = c(2, 2, 40, 0.1, 1),
nonoceanic_pars = c(0, 0)
)
formated_island <- DAISIE:::DAISIE_format_IW(
island_replicates = island_replicates,
time = 5,
M = 1000,
sample_freq = 25,
verbose = FALSE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.