Learn R Programming

Claddis (version 0.3.4)

PhyloCharCompletenessInBins: Phylogenetic character completeness in time-bins

Description

Given a cladistic matrix, time-scaled tree, and set of time bin boundaries will return the proportional character completeness in each bin.

Usage

PhyloCharCompletenessInBins(CladisticMatrix, TimeTree, TimeBins,
  plot = FALSE, CI = 0.95)

Arguments

CladisticMatrix

A cladistic matrix in the form imported by ReadMorphNexus.

TimeTree

A time-scaled phylogenetic tree containing all the taxa in CladisticMatrix.

TimeBins

A set of time bin boundaries (oldest to youngest) in millions of years.

plot

An optional choice to plot the results (default is FALSE).

CI

The confidence interval to be used as a proportion (0 to 1). Default is 0.95 (i.e., 95%).

Value

A list summarising the mean, upper and lower 95

Details

Character completeness metrics have been used as an additional metric for comparing fossil record quality across time, space, and taxa. However, these only usually refer to point samples of fossils in bins, and not our ability to infer information along the branches of a phylogenetic tree.

This function returns the proportional phylogenetic character completeness for a set of time bins.

Examples

Run this code
# NOT RUN {
# Create a random tree for the Day et al. 2016 data set:
Day2016tree <- rtree(nrow(Day2016$Matrix_1$Matrix))
Day2016tree$tip.label <- rownames(Day2016$Matrix_1$Matrix)
Day2016tree$root.time <- max(diag(vcv(Day2016tree)))

# Get proportional phylogenetic character completeness in ten equal-length
# time bins:
PhyloCharCompletenessInBins(CladisticMatrix = Day2016,
  TimeTree = Day2016tree, TimeBins = seq(from =
  Day2016tree$root.time, to = Day2016tree$root.time -
  max(diag(vcv(Day2016tree))), length.out = 11))

# }

Run the code above in your browser using DataLab