Closed xiangpin closed 2 years ago
add read.nextstrain.json function to parse the json tree file of NextStrain. the result return a treedata class.
read.nextstrain.json
json
treedata
library(ggtree) library(treeio) file1 <- system.file("extdata/nextstrain.json", "minimal_v2.json", package="treeio") tr <- read.nextstrain.json(file1) tr %>% ggtree() + geom_tiplab() + geom_tippoint(aes(color=country)) + xlim_tree(x=.009)
Description
add
read.nextstrain.json
function to parse thejson
tree file of NextStrain. the result return atreedata
class.Related Issue
Example