gaospecial / ggVennDiagram

A 'ggplot2' implement of Venn Diagram.
https://gaospecial.github.io/ggVennDiagram/
GNU General Public License v3.0
282 stars 38 forks source link

How do I remove zero count #28

Closed lluisfortes1 closed 3 years ago

lluisfortes1 commented 3 years ago

I want to only plot non-zero count. I do not know how to access to the data and filter count > 0

lluisfortes1 commented 3 years ago

after d = Venn(data) and process_data(d), d is a S4 class object. S4 class slots can be accessed using @, so with d@region$count, a vector is returned, like any data.frame object

gaospecial commented 3 years ago

@archymedes ggVennDiagram has a function region_data() to access d@region data frame.