Learn R Programming

ggtree (version 1.4.11)

get.subs: get.subs method

Description

get substitution information

Usage

get.subs(object, type, ...)
"get.subs"(object, type, ...)
"get.subs"(object, type, ...)
"get.subs"(object, type, ...)
"get.subs"(object, type, ...)

Arguments

object
paml_rst object
type
one of 'marginal_subs', 'marginal_AA_subs', 'joint_subs' or 'joint_AA_subs'.
...
additional parameter

Value

data.frame

Examples

Run this code
nwk <- system.file("extdata/HYPHY", "labelledtree.tree", package="ggtree")
ancseq <- system.file("extdata/HYPHY", "ancseq.nex", package="ggtree")
tipfas <- system.file("extdata", "pa.fas", package="ggtree")
hy <- read.hyphy(nwk, ancseq, tipfas)
get.subs(hy, type="AA_subs")

Run the code above in your browser using DataLab