View source: R/plot_enrich_ora.R
plot_enrich_ora | R Documentation |
dotplot for enrich result from enrich_ORA
plot_enrich_ora(
enrichment,
show_category = 10,
plot_type = "dot",
axis_x = "GeneRatio",
order_by = "-log10(p.adjust)",
color_by = "-log10(p.adjust)",
color_range = c("blue2", "red2"),
size_by = "Count",
size_range = c(2, 6),
text_len_limit = 40,
facet_by = NULL,
facet_scales = "free_y"
)
enrichment |
data.frame, from ORA enrichment, result can be merged from multi enrichment, grouping info can be viewed by facet |
show_category |
integer, show enriched category number |
plot_type |
character, one of dot, bar |
axis_x |
character, plot axis x by which column, one of GeneRatio, -log10(p.adjust), enrichFactor, Count |
order_by |
character, filter show_category by which column, one of GeneRatio, -log10(p.adjust), enrichFactor, Count |
color_by |
character, map point color, one of GeneRatio, -log10(p.adjust), enrichFactor, Count |
color_range |
two element character vector, mapping color range, from low to high |
size_by |
character, map point size, one of GeneRatio, -log10(p.adjust), enrichFactor, Count only works if plot_type is dot |
size_range |
two element numeric vector, mapping point size, from low to high only works if plot_type is dot |
text_len_limit |
integer, wrap y-axis text length |
facet_by |
character, facet plot by which column in enrichment |
facet_scales |
character, facet scales, one of free_y, free_x, free, fixed, only works if facet_by is not NULL |
ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.