jolars / eulerr

Area-Proportional Euler and Venn Diagrams with Ellipses
https://jolars.github.io/eulerr/
GNU General Public License v3.0
130 stars 18 forks source link

Plotting eulerr::venn object conflicts with gplots #78

Open guusmt opened 3 years ago

guusmt commented 3 years ago

First, thanks for making this amazing package - I've used it a a lot and it's great!

An issue that I've run into repeatedly, however, is that an internal plotting function of the eulerr package conflicts with a function from the gplots package with the same name. It's in function that is not exported to the namespace, however.

Hope you can fix this!

Reproducible example

require("eulerr")
require("gplots")
sets <- list(a = c("a", "b", "c", "d"),
             b = c("b", "c", "d", "e"))
venn_obj <- eulerr::venn(sets)
plot(venn_obj)
Error in drawVennDiagram(data = x, small = small, showSetLogicLabel = showSetLogicLabel,  : 
  gplots.drawVennDiagram: This internal function is used wrongly. Please call the function 'venn' with the same arguments, instead.
jolars commented 3 years ago

Hm, let me think about this for a bit. It would require changing the output class of the function.

guusmt commented 3 years ago

Cheers!

jantusan commented 2 years ago

Hello, I have run into the same problem, but I haven't purposefully loaded the package gplots. Is there a way to circumvent this error?