Learn R Programming

ggtree (version 1.4.11)

write.jplace: write.jplace

Description

generate jplace file

Usage

write.jplace(nwk, data, outfile)

Arguments

nwk
tree in newick format
data
annotation data
outfile
jplace output file

Value

jplace file

Examples

Run this code
tree <- system.file("extdata", "pa.nwk", package="ggtree")
data <- read.csv(system.file("extdata", "pa_subs.csv", package="ggtree"),
                stringsAsFactor=FALSE)
outfile <- tempfile()
write.jplace(tree, data, outfile)

Run the code above in your browser using DataLab