plot.fbdrange: Plot oriented tree with stratigraphic ranges

View source: R/plot.fbdrange.R

plot.fbdrangeR Documentation

Plot oriented tree with stratigraphic ranges

Description

Plot oriented tree with stratigraphic ranges

Usage

## S3 method for class 'fbdrange'
plot(x, smart.labels = FALSE, ...)

Arguments

x

object of type fbdrange containing orientation and range data

smart.labels

whether to label the ranges (default FALSE, requires package [ggrepel] to place labels)

...

other arguments to be passed to the plot labels (does nothing if smart.labels = FALSE)

Value

a ggtree plot which can be combined with any other commands from [ggplot2] or [ggtree]

Examples

tree_file <- system.file("extdata", "fbdrange.trees", package = "FossilSim")
fbdr <- get_fbdrange_from_file(tree_file)
p <- plot(fbdr, smart.labels = TRUE)


FossilSim documentation built on Oct. 3, 2024, 1:07 a.m.