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:
"c": Show only the count for each set.
"p": Show only the percentage for each set.
"cp": Show both the count and percentage for each set.
"none": Hide the set totals (default).
This argument provides users with flexibility in choosing how to display set totals in their Venn diagrams.
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 theshow_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:"c"
: Show only the count for each set."p"
: Show only the percentage for each set."cp"
: Show both the count and percentage for each set."none"
: Hide the set totals (default).This argument provides users with flexibility in choosing how to display set totals in their Venn diagrams.
Closes #28