View source: R/enhance_barplot.R
enhance_barplot | R Documentation |
plot enrich result in bar plot
enhance_barplot( data, showCategory = 10, by = "Count", split = NULL, order = FALSE, drop = FALSE, fillstrip = TRUE, print = FALSE, split_color = RColorBrewer::brewer.pal(3, "Dark2"), bar_color = rev(RColorBrewer::brewer.pal(5, "GnBu")[3:5]) )
data |
'enrichResult' object, enrichGO result |
showCategory |
Category numbers to show |
by |
one of Count and GeneRatio |
split |
separate result by 'split' variable |
order |
logical |
drop |
logical |
fillstrip |
fill strip rect or not |
print |
logic for print plot |
split_color |
color for CC, MF, and BP |
bar_color |
color for bar |
ggplot or grid plot
## Not run: test <- enrich_go(deg_data = DEG_df, x = "log2FoldChange", y = "pvalue") enhance_barplot(test$Down,showCategory=10,split = "ONTOLOGY") enhance_barplot(test$Down,showCategory=30) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.