Skip to content

Commit

Permalink
Omit NA in list. (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanlinlin82 committed Mar 31, 2023
1 parent 5e1007f commit fbe725e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Description: An easy-to-use way to draw pretty venn diagram by 'ggplot2'.
Depends: dplyr, grid, ggplot2
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.1.2
RoxygenNote: 7.2.3
2 changes: 1 addition & 1 deletion R/ggvenn.R
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ prepare_venn_data <- function(data, columns = NULL,
if (is.null(columns)) {
columns <- names(data) %>% head(4)
}
a2 <- unique(unlist(data[columns]))
a2 <- na.omit(unique(unlist(data[columns])))
if (length(columns) == 2) {
df_element <- gen_element_df_2()
for (i in 1:nrow(df_element)) {
Expand Down
14 changes: 8 additions & 6 deletions man/geom_venn.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fbe725e

Please sign in to comment.