This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in as.unit(e2) : object is not coercible to a unit

I having trouble getting out of this error. I did not encounter this error until after I erroneously updated R version.

A screenshot of the object, genes_per_dataset, to be used to develop the Venn diagram is attached

Here is the script:

venn::venn(
  genes_per_dataset,
  opacity = .3,
  zcolor = "grey50",
  cexsn = 0,
  cexil = 1,
  lwd = 2,
  col = "black",
  frame = T,
  borders = F,
  ggplot = F,
  ellipse = F,
  ilcs = 1,
  box = F,
  snames = c("Rep 1", "Rep 2"),
  ilabels = F,
  margin(0)
)

Any help please. Thanks.

enter image description here

r venn-diagram venn

Did you try googling "object is not coercible to a unit"? The answer is more often than not in the error message.

Yes I did. I found some related but different aspects. Nothing much to cling to.

Quick question: What is margin(0) supposed to be?

0 answers

No answers yet.

Log in to answer this question.