prop_compat: Proportion of clades which are pairwise compatible.

View source: R/prop_compat.R

prop_compatR Documentation

Proportion of clades which are pairwise compatible.

Description

Proportion of clades which are pairwise compatible.

Usage

prop_compat(n, trivial = FALSE, log = FALSE)

Arguments

n

number of taxa.

trivial

logical. If TRUE, trivial clades with 1 and n members are considered (default is FALSE).

log

logical. TRUE, the log proportion is returned (default is FALSE).

Value

(log) proportion of clades which are pairwise compatible.

Examples

prop_compat(5)
prop_compat(50)
prop_compat(500)
ns <- 4:100
plot(ns, prop_compat(ns), lwd = 3, xlab = "Number of taxa (n)",
ylab = expression(c(n)), main = "Proportion compatible", type = "l", cex.lab = 1.5)

maxbiostat/cladeCorrelation documentation built on July 28, 2023, 2:42 a.m.