plot_daisie_mainland_data: Plot the 'daisie_mainland_data' for a certain replicate

View source: R/plot_daisie_mainland_data.R

plot_daisie_mainland_dataR Documentation

Plot the daisie_mainland_data for a certain replicate

Description

Plot the daisie_mainland_data for a certain replicate

Usage

plot_daisie_mainland_data(daisie_mainland_data, replicate_index)

Arguments

daisie_mainland_data

list containing data of a DAISIE simulation with mainland dynamics, as produced by sim_island_with_mainland and checked by check_daisie_mainland_data

A daisie_mainland_data has two elements:

  • ideal_multi_daisie_data: the ideal data set produced in a simulation, see check_multi_daisie_data for more details

  • empirical_multi_daisie_data: the empirical data sets produced in a simulation see check_multi_daisie_data for more details

replicate_index

index of the replicate

Value

a ggplot2

Author(s)

Richèl J.C. Bilderbeek

Examples

daisie_mainland_data <- sim_island_with_mainland(
  total_time = 1,
  m = 10,
  island_pars = c(1, 1, 10, 0.1, 1),
  mainland_ex = 1,
  mainland_sample_prob = 1,
  mainland_sample_type = "undiscovered",
  replicates = 10,
  verbose = FALSE
)

plot_daisie_mainland_data(
  daisie_mainland_data,
  replicate_index = 1
)

joshwlambert/DAISIEmainland documentation built on July 14, 2024, 5:40 p.m.