Question: clusterporfiler enrichGO plot
0
gravatar for kagan.ferenc
5 days ago by
kagan.ferenc0 wrote:

Could anyone please help me replicating this plot from clusterprofiler R package?

dotplot

ADD COMMENTlink written 5 days ago by kagan.ferenc0

Cross-posted: https://support.bioconductor.org/p/134029/

ADD REPLYlink written 5 days ago by Kevin Blighe65k
1
gravatar for jkkbuddika
5 days ago by
jkkbuddika150
Bloomington, USA
jkkbuddika150 wrote:

Have you tried doing this? If so posting what you have tried could help.

In any case, the clusterProfiler R package has a detailed user guide that would help you learn how to do anything you want to do. You can make a dot plot simply by using the dotplot function after performing GO enrichment analysis using the enrichGO function (looks like this is what you want based on your example). After that you can use the plot_grid function to organize plots (for example here) the way you want. Hope this will get you going.

ADD COMMENTlink modified 5 days ago • written 5 days ago by jkkbuddika150

Thank you for the reply. The specific plot I would want to do is to have the enriched terms for biological processes/molecular function/cellular component in a facet grid from ggplot2. Also it has only one legend to it. Do you have any suggestions for that? I have read through the vignette provided and also their github repository but I could not find a solution for this specific problem.

ADD REPLYlink written 4 days ago by kagan.ferenc0
1

I see. That's why giving few more details help.

Try the accepted answer in this thread. Instead of "cyl" in this answer, use ontology (I am not sure how it appears in your dataframe. Check and use the correct form: ontology/ONTOLOGY/Ontology)! That should do it.

ADD REPLYlink written 4 days ago by jkkbuddika150
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1913 users visited in the last hour