Hi All,
I am currently using R to make my phylogenic images Im more familiar with ggtrees and Im not an expert in R in general but can get by.
My aim is to produce a tanglegram of a core and accessory gene data set and colour the association lines based on metadata. I have a file in tab delimited format with this information. It is a rather large phylogeny so inputting colour data for each leaf would be time consuming.
Is there a way colour the association lines using information from separate file to get an end result similar to this
Ive tried playing around with the following
cophyloplot(t1, t2, assoc = A1, space=80, length.line=2, show.tip.label = F, col = cols) %<+% info$V3
(cols is a defined set of colours for the metadata Im trying to colour)
cophyloplot help page
Thanks
I am currently using R to make my phylogenic images Im more familiar with ggtrees and Im not an expert in R in general but can get by.
My aim is to produce a tanglegram of a core and accessory gene data set and colour the association lines based on metadata. I have a file in tab delimited format with this information. It is a rather large phylogeny so inputting colour data for each leaf would be time consuming.
Is there a way colour the association lines using information from separate file to get an end result similar to this
Ive tried playing around with the following
cophyloplot(t1, t2, assoc = A1, space=80, length.line=2, show.tip.label = F, col = cols) %<+% info$V3
(cols is a defined set of colours for the metadata Im trying to colour)
cophyloplot help page
Thanks
Comment