yanlinlin82 / ggvenn

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

put commas in large numbers - ggvenn #24

Closed hnaeem closed 6 months ago

hnaeem commented 2 years ago

I was wondering how to display large numbers separated by a comma in ggvenn? Any help will be appreciated?

fkgruber commented 6 months ago

see https://github.com/yanlinlin82/ggvenn/pull/42

yanlinlin82 commented 6 months ago

Thanks to @fkgruber. Now, we can use the 'comma_sep' option to add commas in large numbers.

Here's a quick example:

# Install the latest version from GitHub if required
# devtools::install_github("yanlinlin82/ggvenn")

library(ggvenn)

ggvenn(data_frame(A = rep(TRUE, 123456), B = rep(c(TRUE, FALSE), 123456/2)), comma_sep = TRUE)