Learn R Programming

mmodely (version 0.2.5)

plot.transformed.phylo: Plot a transformed phylogenetic tree

Description

PGLS regression will use maximum likelihood to estimate tree parameters while also estimating regression parameters. Here we provide a utility function to visualize what this new tree would look like in two dimensions.

Usage

# S3 method for transformed.phylo
plot(x, delta=1,kappa=1,...)

Value

a plot of a transformed phylogenetic tree

Arguments

x

a phylogenetic tree

delta

an integer between 0 and 3

kappa

an integer between 0 and 3

...

other parameters passed to 'plot'

Examples

Run this code

tree.path <- system.file("extdata","primate-springer.2012.tre", package="mmodely")
phyl <- ape::read.tree(tree.path)[[5]]

plot.transformed.phylo(x=phyl, delta=2.3,kappa=2.1)

Run the code above in your browser using DataLab