Feature: Introduce show_stats
argument for enhanced control over displayed statistics
#46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the new
show_stats
argument to theggvenn
function, providing users with more granular control over the statistics displayed within Venn diagrams. This addresses several open issues and offers a more versatile and intuitive approach compared to the deprecatedshow_percentage
argument.Users can now choose to display either the count (
c
), percentage (p
), or both (cp
) for each set in the Venn diagram. This allows for greater customization and tailoring of the output to specific needs.Example usage:
Related issues: #5, #26, #29, PR #45 (Addresses the
scales
warning - see below)Note on
scales
warning:This pull request does not directly address the
scales
warning mentioned in PR #45.In summary, this pull request introduces a significant improvement to the
ggvenn
package by providing a more flexible and user-friendly way to control the display of statistics within Venn diagrams. It resolves existing issues, enhances clarity, and paves the way for future enhancements.Thank you for considering this contribution!