RhoInc / safety-histogram

Histogram showing distribution of lab measures, vital signs and other measures related to safety in clinical trials.
MIT License
1 stars 1 forks source link

Set the number of bins to the number of distinct values... #91

Closed samussiah closed 5 years ago

samussiah commented 5 years ago

...when the number of distinct values is less than 20, say.

Test notes

emmorris commented 5 years ago

This should fix a problem Jack noticed where there were gaps between bars on the x-axis and some bars were centered over the axis label while others were to the right of the corresponding value label. Per 1-10-19 email.

samussiah commented 5 years ago

going with the freedman-diaconis rule to determine bin width as used previously in web-codebook