geom_cladelab specification for annotating with local images

20 views
Skip to first unread message

Martin Bulla

unread,
Nov 17, 2023, 10:03:37 AM11/17/23
to ggtree
Dear all,

I wish to add a local image as a clade label. Guangchuang's book has an example of annotating clades with phylopics but is missing the syntax for annotation using local images. Does anyone know how to do it?

I have tried specifying geom = 'image' and image within aes to 'local link', but without success.
geom_cladelab(data = dt, mapping = aes(node = node, label = name, image = link, color = name), geom = "image")

Looking forward to hearing from you.
Best,
Martin
Reply all
Reply to author
Forward
0 new messages