Skip to content

ggtree

Bioc current

an R package for visualization of tree and annotation data

v4.2.0 · software · Artistic-2.0

Release Lineage

Entered 3.1 · Apr 17, 2015

Current · Requires R 4.6

1.0 In 23 of 49 releases 3.23

Description

'ggtree' extends the 'ggplot2' plotting system which implemented the grammar of graphics. 'ggtree' is designed for visualization and annotation of phylogenetic trees and other tree-like structures with their annotation data.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

313 92 exported

Complexity

3.4 avg / 36 max

Call network

313 nodes / 268 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

17,587

Files

208

Compiled share

0%

Has compiled src

No

Language breakdown

R 12,480 (71%)Tests 510 (2.9%)Docs 4,342 (24.7%)Vignettes 255 (1.4%)

API

Exported functions

137

Internal functions

218

Recent export changes

v3.9+2 facet_data, facet_widths  −4 MRCA, get.offspring.tip, reroot 1 more
v3.8+3 facet_labeller, geom_nodelab2, geom_rootedge

Testing & CI

Has tests

Yes

Test-to-code ratio

0.04

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Roxygen coverage

97.1%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

21

Dep constraint coverage

31.6%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.2.0

System requirements

C++ standard

License

Artistic-2.0

License flags

SPDX valid, OSI approved

History

Versions

23

First release

2015-10-01

Latest release

2026-04-28

Avg cadence

179 days

Cold removal rate

100%

Dep drift

29

LOC over versions

v3.1: 10,314 LOCv3.2: 13,697 LOCv3.3: 15,163 LOCv3.4: 15,712 LOCv3.5: 15,346 LOCv3.6: 15,956 LOCv3.7: 11,065 LOCv3.8: 11,283 LOCv3.9: 9,690 LOCv3.10: 10,586 LOCv3.11: 10,905 LOCv3.12: 13,400 LOCv3.13: 13,461 LOCv3.14: 13,939 LOCv3.15: 15,169 LOCv3.16: 15,425 LOCv3.17: 15,419 LOCv3.18: 15,518 LOCv3.19: 15,521 LOCv3.20: 15,352 LOCv3.21: 15,372 LOCv3.22: 15,861 LOCv3.23: 17,587 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

Documentation
READMEYes · 315 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideYes
Examples that run
97%
Documented parameters
99%
Return-value docs
78%
References docs
26%

Topics

Depended on by (80)

CRAN (35)

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ggtree")
Yu, G., Huang, R., Iwasaki, W. M., Jones, B., Lam, T. T., Li, L., Silverman, J., Xia, Y., & Xu, S. (2026). ggtree: an R package for visualization of tree and annotation data (Version 4.2.0) [Computer software]. https://bioconductor.org/packages/ggtree

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ggtree version 4.2.0 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy