Hello,
I'm trying to make a bar plot of the enriched go terms as shown in https://ycl6.github.io/GO-Enrichment-Analysis-Demo/2_topGO.html but it's not working.
I have tried installing the github version which should have the enrichment_barplot function but it's still not working. Any advice?
devtools::install_github("ycl6/topGO-feat", ref = "v2.41.0-barplot", force = TRUE)
library(topGO)
png(paste0(outTitle, "_up.png"), width = 8, height = 6, units = "in", res = 300)
enrichment_barplot(up_GOdata, up_Res, showTerms = 20, numChar = 50, orderBy = "Scores",
title = paste0("GO-", ontology," ORA of up-regulated genes"))
invisible(dev.off())
Error in enrichment_barplot(up_GOdata, up_Res, showTerms = 20, numChar = 50, :
could not find function "enrichment_barplot"
Thank you,
Marcela