Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
size_tree_by: implement relative scaling
- Instead of relying on the raw data, perform the following operations: - Normalize values based on standard deviation, which ensures sizes are comparable across datasets and prevents large values from dominating. - Scale all values to be within `rescale_to`, which also helps ensure consistent sizing, but also handles negative values (some of which may be introduced by the previous operation). - The larger the standard deviation is, the larger the the nodes can be. e.g. if rescale_to was c(0, 100) and the values in the data were c(-2, -1, 0, 1, 2), the largest node would almost fill the page. - `rescale_to` is not currently an argument that can be provided by the user. There may be reasons to want to visualize size differences to a greater degree in the future (perhaps objective function value
- Loading branch information