tests/testthat/test-geom_cladelabel.R

context('geom_cladelabel')


test_that('geom_cladelabel support parsing expression', {
    p <- ggtree(rtree(30)) + geom_cladelabel(node=40, label='paste(italic("species name"), "accession number")', parse=T)
    expect_true(ggplot2::is.ggplot(p))
})
GuangchuangYu/ggtree documentation built on Oct. 31, 2024, 10:10 a.m.