grdspcht / ggarg

ggarg: Visualisation of tree-based phylogenetic networks
Other
0 stars 0 forks source link

groupClade behaves differently for evonet and treedata objects #14

Closed arthurKocher closed 1 month ago

arthurKocher commented 1 month ago

The unspecified lineages are marked as "Undefined" in the first case and NA in the second.

Maybe accord and or add an option to specify what value unspecified lineages should take? This is quite minor issue though so do not spend to much time on this if too complicated.

test code

#evonet object
retnet = read.enewick("../data/retnet.nwk")
ggret(groupClade(data = retnet, nodes = c("A", "B"), "AB clade"), aes(color=clade))
#treedata object
net3=ggarg::read.beast("../data/retnet.nexus")
ggret(groupClade(data = retnet3, nodes = c("A", "D"), "AB clade"), aes(color=clade))
arthurKocher commented 1 month ago

works