
Last chance! 50% off unlimited learning
Sale ends in
barplot of enrichResult
# S3 method for enrichResult
barplot(
height,
x = "Count",
color = "p.adjust",
showCategory = 8,
font.size = 12,
title = "",
label_format = 30,
...
)
enrichResult object
one of 'Count' and 'GeneRatio'
one of 'pvalue', 'p.adjust' and 'qvalue'
number of categories to show
font size
plot title
a numeric value sets wrap length, alternatively a custom function to format axis labels. by default wraps names longer that 30 characters
other parameter, ignored
ggplot object
# NOT RUN {
library(DOSE)
data(geneList)
de <- names(geneList)[1:100]
x <- enrichDO(de)
barplot(x)
# use `showCategory` to select the displayed terms. It can be a number of a vector of terms.
barplot(x, showCategory = 10)
categorys <- c("pre-malignant neoplasm", "intestinal disease",
"breast ductal carcinoma", "non-small cell lung carcinoma")
barplot(x, showCategory = categorys)
# }
Run the code above in your browser using DataLab