library(clusterProfiler)
library(wikiprofiler)
data(geneList, package="DOSE")
<- names(geneList)[1:100]
de <- enrichWP(de, organism='Homo sapiens')
x
<- bitr(de, "ENTREZID", "SYMBOL", OrgDb='org.Hs.eg.db')
de2 #### if needed
# de2 <- de2[!duplicated(de2[,1]), ]
<- setNames(geneList[de2[,1]], de2[,2])
value
<- x$ID[1]
ID
<- wpplot(ID)
p1 p1
<- p1 |> wp_bgfill(value, low='darkgreen', high='firebrick', legend_x = .9, legend_y = .95)
p2 p2
<- p2 |> wp_shadowtext()
p3 p3