Learn R Programming

FossilSim (version 2.4.1)

plot.fbdrange: Plot oriented tree with stratigraphic ranges

Description

Plot oriented tree with stratigraphic ranges

Usage

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

Value

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

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)

Examples

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

Run the code above in your browser using DataLab