Repository navigation
Use data prefix for n - #160
Conversation
Code Coverage SummaryDiff against mainResults for commit: a2725ef Minimum allowed coverage is ♻️ This comment has been updated with latest results |
osenan
left a comment
There was a problem hiding this comment.
It is ok, but I suggest two changes:
Don't you think that it needs to be mentioned in documentation that the AE count is shown by subcategory and by bar and that the total is shown?
I think that the number of teach geom_text should be at the middle of the bar, like this post:
https://www.researchgate.net/figure/Butterfly-plot-comparing-the-frequencies-of-adverse-events-between-the-placebo-left_fig5_379695609
I was trying to use this https://stackoverflow.com/questions/41877645/geom-text-position-middle-on-a-bar-plot but it does not work. But I think it will be clearer if the individual count is at the center of the bar and the total is slightly separated
|
I have updated the documentation. See also 4a54529 for the improvement suggested on the labels and see the current output:
Currently the labels are symmetric (in the sense they are touching the bars on both sides) and centered for each group. I haven't addressed the issue of the labels that cannot be read. I think it would add too much complication and can be easily deduced from the total number. An easy change would be to use labels with white background (so replace I've also tested that it works with faceting:
|
osenan
left a comment
There was a problem hiding this comment.
Thanks for making the changes! I think the plot looks much better now.


Pull Request
Fixes #159
Use values instead of showing the name of the column
See the issue for the before, now we see: