View source: R/DAISIE_format_IW.R
DAISIE_format_IW | R Documentation |
Formats island-wide simulation output into standard DAISIE list output
DAISIE_format_IW( island_replicates, time, M, sample_freq = 25, verbose = TRUE, trait_pars = NULL )
island_replicates |
List output from
|
time |
Numeric defining the length of the simulation in time units. For example, 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
island_replicates <- list() island_replicates[[1]] <- DAISIE:::DAISIE_sim_core_cr( time = 5, mainland_n = 1000, pars = c(2, 2, 40, 0.1, 1), area_pars = DAISIE::create_area_pars( max_area = 1, current_area = 1, proportional_peak_t = 0, total_island_age = 0, sea_level_amplitude = 0, sea_level_frequency = 0, island_gradient_angle = 0), hyper_pars = create_hyper_pars(d = 0.2, x = 0.1), nonoceanic_pars = c(0, 0) ) formatted_island_sampled <- DAISIE:::DAISIE_format_IW( island_replicates = island_replicates, time = 5, M = 1000, sample_freq = 25, verbose = FALSE ) formatted_island_full <- DAISIE:::DAISIE_format_IW( island_replicates = island_replicates, time = 5, M = 1000, sample_freq = Inf, verbose = FALSE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.