Open Sidragull57 opened 3 months ago
Use the argument category (to change it from its default value #E5C494).
category
#E5C494
> ## load required libaries > library(clusterProfiler) > library(enrichplot) > library(org.Hs.eg.db) > > ## using the example dataset. > data(geneList, package="DOSE") > genes <- names(geneList)[abs(geneList) > 2] > > ego <- enrichGO(gene = genes, + universe = names(geneList), + OrgDb = org.Hs.eg.db, + ont = "ALL", + pAdjustMethod = "BH", + pvalueCutoff = 0.01, + qvalueCutoff = 0.05, + readable = TRUE) > > ## prepare cnetplot, but color gene sets green, > ## and genes by log2FC. > color.params = list(category = "green", foldChange = geneList) > p1 <- cnetplot(ego, color.params=color.params) > print(p1) >
Use the argument
category
(to change it from its default value#E5C494
).