View source: R/plot_phylo_all.R
plot_phylo_all | R Documentation |
Plot all Chronograms with Study Titles and Geochronological Axis
plot_phylo_all( chronograms, include = TRUE, individually = TRUE, folder_name = "phylo_all", max_depth, plot_type = "phyloch", time_axis = TRUE, mai1, mai2, mai3, mai4, omi1, omi2, omi3, omi4, plot_height, plot_width, write = "no", file_name = "chronogram", geologic_timescale = "strat2012", geologic_unit = "period", axis_label = "Time (MYA)", 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, ... )
chronograms |
A list of chronograms as 'multiPhylo' or as a plain 'list' object. |
include |
Boolean or numeric vector. Default to TRUE, keep all chronograms in chronograms. If FALSE, exclude chronograms with only two tips. If numeric, it is used as indices to subset chronograms object. |
individually |
Boolean indicating if chronograms should be plotted one by one or appended to the same file. |
folder_name |
A character string indicating the name of the folder to write the chronogram plot files to. Default to "phylo_all". Only relevant if 'write = "png"' or 'write = "pdf"'. |
max_depth |
A numeric vector of length 1, indicating the upper limit of the time scale on the x axis to be used on all plots. If none is provided, it is estimated by getting the time depth of the oldest chronogram, adding 5 and rounding to the closest 10. See details for more. |
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 |
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. |
mai2 |
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. |
mai3 |
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. |
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 |
A numeric value indicating outter plot margin sizes in inches. |
omi2 |
A numeric value indicating outter plot margin sizes in inches. |
omi3 |
A numeric value indicating outter plot margin sizes in inches. |
omi4 |
A numeric value indicating outter plot margin sizes in inches. |
plot_height |
A numeric value indicating height and width for the plot. |
plot_width |
A numeric value indicating height and width for the plot. |
write |
A character vector of length 1 indicating the file extension to write the plots to. Options are "pdf" or "png". Anything else will not write a file. |
file_name |
A character string indicating a file name to write the chronogram plots to. Relevant if 'write = "png"' or 'write = "pdf"'. |
geologic_timescale |
A dataframe of geochronological limits. |
geologic_unit |
A character vector used to select geological time units that shall be displayed. When using |
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. |
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. |
... |
Arguments passed on to
|
Currently, max_depth is obtained by default with 'round(max(sapply(chronograms, function(x) max(ape::branching.times(x)))) + 5, digits = -1)'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.