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

Branch angle default #16

Closed dan-knight closed 2 years ago

dan-knight commented 2 years ago

These changes set the default branch angle value as pi / 6. This has been a sensible value, and complex plots can be made without changing this. If a plot does not work with this value, it will likely need more granular branch angle control (not just a different value for fixed_angle. For this reason, I removed the argument from SRCGrob and added a check for an angle column in the input tree data.frame.

The angle column is not implemented yet, but it will not require any changes to the API. It can be included in the documentation. Until it is fully implemented, a message will be displayed if it is included in the input.