Skip to content

geom_cladelabel()/geom_cladelab() are not parsing text #709

Description

@aleixop

Thank you for this great tool. Using ggtree v4.2.0 with ggplot2 v4.0.3, the following code does not parse correctly the text.

library(ggtree)
library(ape)

tree <- rtree(5)

ggtree(tree) +
  geom_cladelab(
    node = 6,
    label = "italic('Test')",
    parse = TRUE
  ) +
  xlim(c(0,3))
Image

With ggtree v4.0.1 with ggplot2 v4.0.1 geom_cladelabel() used to work, but not geom_cladelab().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions