enrichplot
enrichplot copied to clipboard
Size parameter in dotplot.enrichResult
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