uclahs-cds / package-CancerEvolutionVisualization

Publication Quality Phylogenetic Tree Plots
https://cran.r-project.org/web/packages/CancerEvolutionVisualization/
GNU General Public License v2.0
2 stars 0 forks source link

Dendrogram bug with <6 nodes #149

Open whelena opened 6 days ago

whelena commented 6 days ago

Dendrogram mode has an unexpected interaction with the calculate.angles.fixed function resulting in the plot below. the condition for running calculate.angles.radial vs calculate.angles.fixed id determined by the following logic.

is.null(fixed.angle) && nrow(v) > 6) || any(table(v$parent) > 2)

Screenshot 2024-10-01 at 1 29 53 PM

Potential solution