plot_mainland: Plot the simulated mainland.

View source: R/plot_mainland.R

plot_mainlandR Documentation

Plot the simulated mainland.

Description

Plot the simulated mainland.

Usage

plot_mainland(mainland, branch_colour = "unique_species_id")

Arguments

mainland

the evolutionary history of the mainland species, as created by sim_mainland. Use plot_mainland to visualise the that evolutionary history.

branch_colour

A string, either "unique_species_id" or "clade_id" to colour the branches of the mainland tree(s) with one of the attributes.

Value

a ggplot2 facet plot, where each facet/row contains the evolutionary history of a clade. Per clade, the x axis shows the time from past (at the left) to the present (at the right). The y-axis has no meaning except for separating the different species using branch_code_to_y.

Author(s)

Richèl J.C. Bilderbeek

See Also

These are the functions to plot an evolutionary history:

  • Use plot_mainland to plot the mainland history

Examples

mainland <- DAISIEmainland::sim_mainland(
  total_time = 1,
  m = 2,
  mainland_ex = 2
)

plot_mainland(mainland)

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