I added some traits to the branches of my phylogram and scaled the branch widths to their value:
library(ggtree)
library(tidyverse)
tree <- rtree(3, rooted = T)
trait <- data.frame(node = 1:(length(tree$edge.length)+1),
thing = rnorm(n = length(tree$edge.length)+1, mean = 4))
t <- full_join(tree, trait)
ggtree(t, aes(size = thing))
Especially if the trait values have a large range, the branch width needs to be able to reflect that. How can I specify the maximum width of the branches?