Description Usage Arguments Value Examples
A function to plot a dotplot of (model-averaged) diversification rates in the alternative states.
1 2 3 4 5 6 7 8 |
processed_recon |
An object produced by |
parameter |
The diversification parameter to be plotted on the y axis. Possible options are turnover, extinct.frac, net.div, speciation, extinction |
states_names |
A character vector of length two giving the translation for states 0 and 1. |
bin_width |
The width of bins for the dotplot. Treat this as any histogram. Testing several different bin width values is recommended. |
colors |
Colors for the points in the two alternate states |
plot_as_waiting_time |
Whether to plot the rates or their inverse (waiting times) |
A dotplot of tip-associated rates (possibly model averaged).
1 2 3 4 5 6 7 8 9 10 11 12 13 | data("diatoms")
processed_hisse <- h_process_recon(hisse_recon=diatoms$cid4_recon)
h_dotplot(
processed_recon = processed_hisse,
parameter = "turnover",
states_names = c("Plankton", "Benthos"),
bin_width = 0.2,
colors=c("orange", "violet"),
plot_as_waiting_time = TRUE
) + labs(x = "", y = "Waiting time (My)", title = "Turnover")
# see ?h_scatterplot for examples for modifying the graph using ggplot2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.