View source: R/plot_chronogram.R
plot_chronogram | R Documentation |
Plot a single chronogram with a title and a geochronological axis
plot_chronogram( chronogram, title = "Chronogram", time_depth = NULL, plot_type = "phyloch", time_axis = TRUE, mai1, mai2, mai3, mai4, omi1, omi2, omi3, omi4, plot_height, plot_width, geologic_timescale = "strat2012", geologic_unit = "period", cex_tiplabels = graphics::par("cex"), cex_axislabel = graphics::par("cex"), cex_axis = graphics::par("cex"), cex_title = graphics::par("cex"), pos_title = 1, pos_axis = 1, center_axislabel = 0.5, axis_label = "Time (MYA)", ... )
chronogram |
A chronogram either as a newick character string or as a 'phylo' object with branch length proportional to time. |
title |
A character string providing the title for the plot. |
time_depth |
A numeric vector indicating the upper limit for the time scale on the x axis. |
plot_type |
A character vector of length one indicating the type of plot to generate. Options are:
|
time_axis |
Default to 'TRUE', add a time axis to the tree plot. |
mai1, mai2, mai3, mai4 |
A numeric value indicating internal plot margin sizes in inches. 'mai4' is particularly important as it indicates the space needed for plotting whole tip labels on the right margin of the plot. |
omi1, omi2, omi3, omi4 |
A numeric value indicating outter plot margin sizes in inches. |
plot_height, plot_width |
A numeric value indicating height and width for the plot. |
geologic_timescale |
A dataframe of geochronological limits. |
geologic_unit |
A character vector used to select geological time units that shall be displayed. When using |
cex_tiplabels |
A numeric value indicating **c**haracter **ex**pansion (i.e., size scaling factor) of tip labels in 'chronogram'. Default to value given by 'graphics::par("cex")'. |
cex_axislabel |
A numeric indicating character expansion for the time axis label. Default to value given by 'graphics::par("cex")'. |
cex_axis |
A numeric indicating character expansion for the axis. Default to value given by 'graphics::par("cex")'. |
cex_title |
A numeric indicating character expansion for the title. Default to value given by 'graphics::par("cex")'. |
pos_title |
Indicates the line position of the title. Default to 1. |
pos_axis |
Indicates the line position of the axis. Default to 1. |
center_axislabel |
A numeric indicating centering position of time axis label. Default to 0.5. |
axis_label |
A character string used to provide information on time units. Defaults to "Time (MYA)" (time in million years ago). If NULL, time units are not added. |
... |
Arguments passed on to
|
[plot_phylo()] uses different plotting functions to generate a plot of a given chronogram with a time axis representing geologic time.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.