I am using cophyloplot to create a tanglegram of two phylogenetic trees. The method works well with small trees but as the trees get larger the output image remains the same size and I can't find a way to expand it.
Below is the code for a small tree that works fine (basically same as example at: https://www.rdocumentation.org/packages/ape/versions/5.4-1/topics/cophyloplot):
library(ape)
#two random trees
TreeA <- rtree(10)
TreeB <- rtree(10)
#creation of the association matrix:
association <- cbind(TreeB$tip.label, TreeB$tip.label)
cophyloplot(TreeA, TreeB, assoc = association, length.line = 4, space = 28, gap = 3)
This what the small tree code produces:
But when I use larger trees, they become unreadable. For example using trees with 100 tips results in this:
It is impossible to read the tip labels. How can I expand the rendering so it is readable?