Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparecluster Emapplot Pie Node Size Error #301

Closed
mj-kamal opened this issue Nov 25, 2024 · 1 comment
Closed

Comparecluster Emapplot Pie Node Size Error #301

mj-kamal opened this issue Nov 25, 2024 · 1 comment

Comments

@mj-kamal
Copy link

In brief, the size_category argument doesn't work for emapplots using comparecluster objects when displaying nodes as pie graphs. I'm trying to decrease the pie graph - node size (or scale everything else up to make the nodes look smaller) and I've tried a few different things with no success. I should note that this wasn't an issue with a previous version of enrichplot (1.20.3).

Example code below:

#gene_list is a list with 3 elements containing gene entrezids
compare_cluster_results <- compareCluster(
  geneCluster = gene_list, 
  fun = "enrichGO",
  OrgDb = org.Mm.eg.db,
  ont = "BP",           
  pAdjustMethod = "BH", 
  qvalueCutoff = 0.05
)

cc_PT <- pairwise_termsim(compare_cluster_results)

emapplot(
    cc_PT,
    showCategory = 35,
    size_category = 0.5,
    pie = "count", 
    group = TRUE)

@mj-kamal mj-kamal changed the title Comparecluter Emapplot Pie Node Size Error Comparecluster Emapplot Pie Node Size Error Nov 25, 2024
@GuangchuangYu
Copy link
Member

emapplot(
    cc_PT,
    showCategory = 35,
    size_category = 0.5,
    pie = "count", 
    group = TRUE)

image

GuangchuangYu added a commit that referenced this issue Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants