-
Notifications
You must be signed in to change notification settings - Fork 43
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
New "extend_line" parameter. #70
Conversation
…zontal comparison lines.
…iption of 'extend_line' parameter to 'geom_signif()' function.
Hi Roman, Just one small question: is there a reason you decided to make the adjustments in Best, Constantin |
Oh yes, you're right. I was a bit in a rush because I needed this feature for some figures in my thesis so I must've missed this more obvious solution. Would you prefer if I move the code to the |
Well, that would of course be amazing. I also noticed that you put the new parameter in the last place of the |
Alright, I'll do that. I anyway don't think I would've been happy with this implementation now that you pointed how awkwardly placed the code is 😅 I'll close this PR and make a new one as soon as I have it ready. |
I just gave it a try but got some doubts. Maybe I'm missing something obvious but the difficulty I see is that in |
That is totally fine. That is exactly the kind of argument that means that it is much better idea to keep the code in In that case, I will review the code as it is right now and after that it should be good to merge :) |
…code for 'extend_line' parameter.
Thank you so much again. I have merged your changes and will see that I make a new release including the feature soon :) |
Thank you too! I'm happy that I could contribute. |
Hi Constantin,
I implemented a new
extend_line
parameter that allows the user to horizontally shorten or extend the bracket line that is drawn between the groups for each comparison. Negative values shorten it, positive values extend it. I did this because when slightly shortening the lines, one can draw several comparisons on the same height (y position) without them overlapping, which saves some space and can look like this:I think it's quite useful and hope you think so too.
There are 4 commits because the first implementation I made failed when the order of groups was such that the bracket line is drawn backward, e.g. from group 3 to group 2. Then I added some safety checks and removed a log message that I had forgotten.
Cheers,
Roman