Error in as.unit(e2) : object is not coercible to a unit
0
0
Entering edit mode
6 weeks ago
otieno43 ▴ 30

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 • 381 views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1308 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6