Controlling position of add_data_labels_repel to match points_beeswarm() or points_jitter() #104
|
I'm using tidyplots and wondering if there's a way to ensure that the labels from add_data_labels_repel() correspond to the exact position of the points created by add_data_points_beeswarm() or add_data_points_jitter(). In ggplot2, I can achieve this by using the same position object for both the points and the labels: Currently with tidyplots, I'm using: Is there a way to ensure the labels in tidyplots correspond to their specific points, similar to how I can share the position object in ggplot2? Or are there any other approaches to achieve this alignment? For example: if there is a parameter like label_position = "beeswarm" Thank you for this amazing package! |
Replies: 1 comment 1 reply
|
Hi @htqqdd This is an interesting point! I just pushed a fix to the development version of tidyplots, which now allows to do this You can install the development version like so Or in case {pak} does not work, like so Best |
Hi @htqqdd
This is an interesting point!
I just pushed a fix to the development version of tidyplots, which now allows to do this
You can install the development version like so
Or in case {pak} does not work, like so
Best
Broder