I love the plots that are produced by clusterProfiler for summarizing a large amount of gene ontology or pathway data. But what I'm interested in doing is combining pathway data from several sources to produce a plot, rather than using the enrichGO/enrichKEGG functions built into clusterProfiler. The plot I'm trying to create using my own input data is:
In clusterProfiler, the input to this is dataframe of the format:
I can create a dataframe containing my "customized" pathway data, but can't get it to be recognized by the dotplot function in clusterProfiler (because it's a data frame and technically not a "compareClusterResult" object). So is there a way to coerce my data frame to a compareClusterResult object or an alternative way to do this? I'm not skilled enough to recreate something similar using ggplot2 or plotly....
Many thanks for your help - much appreciated.