Nothing
本指南带你在五分钟内画出第一张 Rclade 图。
library(Rclade)
data(example_tree) # 带有 GTDB 风格末端标签的 phylo 对象
example_tree 是一个内置的小树,便于在无需自有数据的情况下尝试全部功能。
按门(phylum)阶元折叠并添加地质时间轴:
p <- plot_timetree(example_tree, rank = "phylum", unit = "Ma")
print(p)
这一次调用完成了:
save_timetree(p, file = "phylum_tree.pdf", width = 12, height = 8)
输出格式由文件扩展名决定:.pdf、.png、.tiff、.svg、.eps。
summarize_timetree(p)
打印末端数量、折叠分支数、分类覆盖率等信息。
# 环形 / 扇形布局
p2 <- plot_timetree(example_tree, rank = "class", layout = "circular")
# 关闭时间轴
p3 <- plot_timetree(example_tree, rank = "phylum", add_timescale = FALSE)
# 使用自定义调色板
p4 <- plot_timetree(example_tree, rank = "phylum", color_palette = "Set1")
下一步:阅读核心概念,理解分类格式、MRCA 折叠与时间轴。
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.