You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than attempting generic labeling inside the plot routine, perhaps the euler object could be augmented with an array of set intersection locations (centers?) for use adding labels to the plot afterward. Alternately, there could be a new helper function that took the euler object and returned an array/data_frame of labeled (sets intersected) and locations.
Identifying the locations of the intersections (already done).
Providing pretty user labels for selected intersections.
The current SW already does #1. #2 could be accomplished in a variety of ways. Either within or outside of the Euler diagram SW. One well accepted solution for labeling dense points with no label overlaps uses a physical simulation with the labels repelling each other. An example can be found here https://github.com/slowkow/ggrepel. This would provide a reasonable solution for automatic labeling within Euler. Alternately, a data frame of intersections and their locations could be returned and the user would be responsible for adding a new layer to the plot.
Thanks for your work, it's a very useful package.
I'd like to add extra-text/labels to euler plots, so that I can provide summary information for each sub-group.
Below is a mock-up of the idea.
I understand this would be non-trivial to automatically position the extra labels, but hope there is a work around.
Here is some example code on how to generate the sub group summary numbers (not used for the above mock-up image).
Best wishes.
The text was updated successfully, but these errors were encountered: