diversity: Evaluating diversity and plot

Description Usage Arguments Value Author(s) Examples

View source: R/diversity.R

Description

Evaluating diversity and plot

Usage

1
diversity(obj, color = NULL, plotit = T)

Arguments

obj

Object resulted from phyC.

color

If plotit=TRUE, color parameter of each cluster in the plot.

plotit

Whether plot the diversity or not (logical).

Value

ind.div Diversity of each tree.

div Diversity of each cluster.

Author(s)

Yusuke Matsui & Teppei Shimamura

Examples

1
2
3
4
5
6
7
8
library(phyC)
data(ccRCC)
vaf <- lapply(vaf,function(x)x[,-(1:3)])
trees <- par.tree(vaf)
edgeList <- lapply(trees,function(x)x$edge)
edgeLenList <- lapply(trees,function(x)x$edge.length)
res <- phyC(edgeList,edgeLenList,cluster = 3,type = "h",method = "ward")
div <- diversity(res)

ymatts/PhyC documentation built on May 4, 2019, 5:30 p.m.