-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pop-workflow: Improve default binning for plotPK/plotDemography #383
Comments
@pchelle @abdullahhamadeh Same reason as in #318. I have also tried to set the bins manually as described in #318 - but did not manage to get any bins for child populations. Can you tell me hot to set the bins properly for the example attached if I want to have e.g. 10 bins in every range plot? |
Currently, binning manually 10 bins per population would give: |
I went back into the code to see if I could find a solution,
but I could make it happen after the selection of the population: e.g.
In which case, |
…nSet selection The binning method is now centralized for all the demography parameters
With the update of PR #387, the aggregation is now performed after the selection of the population. |
Moving forward, the setting of the bins will also be easier: I also added from our discussion the setting for stairstep plot: |
really nice! |
In the attached example 4 populations with 500 individuals each were defined: reference adult population for [30 .. 70] years and 3 children populations for [0 .. 3], [3 .. 6], [6 .. 9] years.
All the age-dependency plots in PK/Demography show nothing for [0 ..3] and [0..6] populations and only very few bins for [6 ..9].
01_bin.zip
Expand to see the plots
The default binning algorithm should be improved so that every Range plot shows at least N bins per default.
(not sure what the good choice for N is. 10?)
The text was updated successfully, but these errors were encountered: