View source: R/plot_mainland.R
plot_mainland | R Documentation |
Plot the simulated mainland.
plot_mainland(mainland, branch_colour = "unique_species_id")
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. |
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.
Richèl J.C. Bilderbeek
These are the functions to plot an evolutionary history:
Use plot_mainland to plot the mainland history
mainland <- DAISIEmainland::sim_mainland(
total_time = 1,
m = 2,
mainland_ex = 2
)
plot_mainland(mainland)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.