enrichplot icon indicating copy to clipboard operation
enrichplot copied to clipboard

Size parameter in dotplot.enrichResult

Open fmarchildon opened this issue 3 years ago • 0 comments

Dear YuLab,

I think the size parameter in the function dotplot.enrichResult is not fully implemented. I cannot use it to adjust my x-axis. See below:

ggo <- clusterProfiler::enrichGO(gene = dataIDs, OrgDb = org.Mm.eg.db, ont = "BP", pAdjustMethod = "BH", readable = T, pool = F)

This below works fine dotplot(ggo, color = 'p.adjust', x = "geneRatio", showCategory = 20, decreasing = T, label_format = 25)

But if I add a parameter for size, I get an error: dotplot(ggo, color = 'p.adjust', x = "geneRatio", size = "Percentage", showCategory = 20, decreasing = T, label_format = 25) Error in FUN(X[[i]], ...) : object 'Percentage' not found

fmarchildon avatar Mar 27 '21 13:03 fmarchildon