YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
511 stars 112 forks source link

can't repeat adding gene/snp name #14

Open wym0072003 opened 4 years ago

wym0072003 commented 4 years ago

Hi,

Thank you for providing this excellent tool! I got an error in repeating adding gene name, can you please give me a favor? ###########################

SNPs <- pig60K[pig60K[,5] < (0.05 / nrow(pig60K)), 1] genes <- paste("GENE", 1:length(SNPs), sep="_") set.seed(666666) CMplot(pig60K[,c(1:3,5)], plot.type="m",LOG10=TRUE,col=c("grey30","grey60"),highlight=SNPs,

  • highlight.col=c("red","blue","green"),highlight.cex=1,highlight.pch=c(15:17), highlight.text=genes,
  • highlight.text.col=c("red","blue","green"),threshold=0.05/nrow(pig60K),threshold.lty=2,
  • amplify=FALSE,file="jpg",memo="",dpi=300,file.output=TRUE,verbose=TRUE,width=14,height=6) Error in CMplot(pig60K[, c(1:3, 5)], plot.type = "m", LOG10 = TRUE, col = c("grey30", : unused arguments (highlight.text = genes, highlight.text.col = c("red", "blue", "green")) ########################### Thank you very much!

Best,

Yiming

YinLiLin commented 4 years ago

Hi Yiming,

The package on CRAN is not updated for this function, which needs more test on its stability before being submitted to CRAN. So you should source the online script of GitHub to use it.

Cheers, Lilin

wym0072003 commented 4 years ago

Hi Lilin,

That perfectly works. Thank you so much!

Best and regards

Yiming