please see this two figure.
maybe drawing these two figures could require R script.
Are there any references or papers talking about how to make these two figures?
Maybe the paper from which these figures come from also mentions how they were generated.
Probably the ETE Toolkit can do what you want. For example, check these figures: