CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

Error in seq.default

Open UronicAcid opened this issue 5 years ago • 4 comments

Hello, Much apprecitated for excelltent software. I get this error when I want to draw a SNP-density plot.

Error in seq.default(0, chorm.maxlen/bp, round(xticks[2])) : 
  invalid '(to - from)/by'

My data is

>head(mydata)
   SNP Chromosome Position
1 SNP1          1     4623
2 SNP2          1     4626
3 SNP3          1     4635
4 SNP4          1     4675
5 SNP5          1     4772
6 SNP6          1     4869

And I am using the following code to draw a SNP-density plot.

CMplot(mydata,type="p",plot.type="d",bin.size=1e6,chr.den.col=c("darkgreen", "yellow","red"),file="jpg",memo="",dpi=300, file.output=TRUE,verbose=TRUE,width=9,height=6)

Could you please tell me what goes wrong? Thanks a lot.

UronicAcid avatar Jun 09 '20 12:06 UronicAcid

Hi,

The format of data you showed above looks fine, would you mind sending your data to me at [email protected]?

Best, LL

YinLiLin avatar Jun 10 '20 00:06 YinLiLin

Hello, I got the same issue.

Could someone help me please. thanks in advance.

Elakhdar avatar Jul 12 '21 10:07 Elakhdar