This is a test version of Biostars. For the public version, visit https://www.biostars.org.
KEGG enrichment dotplot

Hello friends. I'm trying to visualize a dotplot using enrichplot package in R for KEGG and GO object created by enrichKEGG and enrichGO function of clusterprofiler package, but I get this error every time :

wrong orderBy parameter; set to default `orderBy = "x"` Error in ans[ypos] <- rep(yes, length.out = len)[ypos] : replacement has length zero

I don't know why. i tried everything but nothing happened. Does anyone know the answer? does anyone know what I have to do ?

enrichment dotplot kegg clusterprofiler go

I get the same error. Did you manage to solve this?

1 answer

It seems you are not the only one who is getting this error, based on this GitHub issue. a workaround is to install the latest version of the package from the GitHub repo:

## install.packages("devtools")
devtools::install_github("YuLab-SMU/enrichplot")

tnx for your help. I did that function, but it didn't work. I get that error yet. This error :

Error in ans[ypos] <- rep(yes, length.out = len)[ypos] : replacement has length zero

I really don't know what the problem is.

Log in to answer this question.