#make a gene network from enriched pathways
options(ggrepel.max.overlaps = Inf)
## convert gene ID to Symbol
edox <- setReadable(gse, 'org.Mm.eg.db', 'ENSEMBL')
p2 <- cnetplot(edox, categorySize="pvalue", showCategory=16, foldChange=gene_list, node_label="category")
I'm using the above code to try to make a gene network for some pathways enriched in my GSEA data analysis, however one of the pathways that I am interested in including is the 16th pathway in the list. Because of the number of genes involved, plotting with showCategory=16 is too cluttered. I want to write some sort of ifelse statement to plot just the 16th pathway. Or does anyone know how to specify show category as a range where the first included pathway is not the first pathway? I'm using the enrichplot library with DOSE dependencies.
Thank you for your help!