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))
})

Try the ggtree package in your browser

Any scripts or data that you put into this service are public.

ggtree documentation built on Nov. 15, 2020, 2:09 a.m.