I have a Sankey diagram where each node’s percentage reflects the proportion of individuals who continue to be enrolled in the study each month. Currently, the code excludes participants who end up in trajectories with fewer than 11 beneficiaries. This works well for reducing noise in the diagram, but I would like to modify the percentage calculation to account for these excluded smaller trajectories.
1 Like