This function is used to plot a bubble chart displaying the enrichment results.
enrichment_chart(result_df, plot_by_cluster = FALSE)
a data frame that must contain the following columns:
Description of the enriched pathway
Fold enrichment value for the enriched pathway
the lowest adjusted-p value of the given pathway over all iterations
the up-regulated genes in the input involved in the given pathway, comma-separated
the down-regulated genes in the input involved in the given pathway, comma-separated
the cluster to which the pathway is assigned
boolean value indicating whether or not to group the pathways by cluster (works if "Cluster" is a column of `result_df`).
a `ggplot2` object containing the bubble chart. The x-axis corresponds to fold enrichment values while the y-axis indicates the enriched pathways. Size of the bubble indicates the number of DEGs in the given pathway. Color indicates the -log10(lowest-p) value. The closer the color is to red, the more significant the enrichment is. Optionally, if "Cluster" is a column of `result_df` and plot_by_cluster == TRUE, the pathways are grouped by clusters.
# NOT RUN {
g <- enrichment_chart(RA_output)
# }
Run the code above in your browser using DataLab