I am creating a tree like this:
simple_plot <-
ggtree::ggtree(phyloobj,
layout = "fan",
open.angle = 20,
ladderize = T,
lwd = .2)
And I add a gheatmap like this:
h1 <- gheatmap(simple_plot, Year, offset = 6, width = 0.1, color = NULL, colnames = FALSE)+
scale_fill_brewer(palette="Paired") +
theme(legend.position = "bottom",
legend.title = element_text(size = 12),
legend.text = element_text(size = 10),
legend.box = "vertical", legend.margin = margin())
However, while I do get a nice opening in the tree if I just plot the simple_plot, when I add the the gheatmap, that opening goes away.
How do I get gheatmap not to close my open.angle?