eulerr icon indicating copy to clipboard operation
eulerr copied to clipboard

Plotting eulerr::venn object conflicts with gplots

Open guusmt opened this issue 5 years ago • 3 comments

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.

guusmt avatar Dec 14 '20 13:12 guusmt

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

jolars avatar Dec 14 '20 15:12 jolars

Cheers!

guusmt avatar Dec 15 '20 09:12 guusmt

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?

jantusan avatar May 11 '22 13:05 jantusan