Ranked bar plot of top up/down features from Wilcoxon results
Source:R/statistical_analysis.R
top_features_plot.RdShows the top most upregulated and top most downregulated significant
features (by log2 fold change) from wilcox_group_test() as a ranked
horizontal bar chart. This scales to features with very long names: each
name is drawn once as an axis label rather than needing to be
positioned/repelled on a scatter plot, so labels never get dropped or
overlap regardless of how many features there are.
Arguments
- wilcox_results
Output of
wilcox_group_test(). If it contains more than oneComparison, only the first is plotted; subset beforehand to plot a specific comparison.- top_n
Number of top upregulated and top downregulated features to show.
- p_threshold
Only features with
Adjusted_P_value < p_thresholdare considered.- title
Plot title.