yanlinlin82 / ggvenn

Venn Diagram by ggplot2, with really easy-to-use API.
Other
167 stars 25 forks source link

feat: Adds `show_set_totals` argument to display set totals #48

Closed dnldelarosa closed 1 month ago

dnldelarosa commented 2 months ago

This pull request introduces a new feature to the ggvenn package, allowing users to display the total count and/or percentage for each set in the Venn diagram using the show_set_totals argument. This addresses the request in issue #28 for a more informative Venn diagram display.

Motivation:

Currently, ggvenn only displays the counts or percentages within the intersections of the Venn diagram. However, users may also want to see the total counts or percentages for each individual set, providing a more complete understanding of the data, as requested in issue #28.

Implementation:

The new show_set_totals argument accepts the following values:

This argument provides users with flexibility in choosing how to display set totals in their Venn diagrams.

Closes #28