perWeek_barplot {moanin} | R Documentation |
Creates pairwise contrasts for all timepoints
perWeek_barplot( de_results, type = c("qval", "pval"), labels = NULL, threshold = 0.05, xlab = "Timepoint", ylab = "Number of DE genes", main = "", ... )
de_results |
results from |
type |
type of p-value to count ("qval" or "pval") |
labels |
labels to give each bar |
threshold |
cutoff for counting gene as DE |
xlab |
x-axis label |
ylab |
y-axis label |
main |
title of plot |
... |
arguments passed to |
create_timepoints_contrasts
creates the needed contrasts for
comparing two groups for every timepoint in the format needed for
DE_timepoints
(i.e. makeContrasts
, to which the
contrasts are ultimately passed). The time points are determined by the
meta data in the moanin_object
provided by the user.
This is a plotting function, and returns (invisibly) the results of
barplot
data(exampleData) moanin <- create_moanin_model(data=testData, meta=testMeta) contrasts <- create_timepoints_contrasts(moanin, "C", "K") deTimepoints <- DE_timepoints(moanin, contrasts=contrasts, use_voom_weights=FALSE) perWeek_barplot(deTimepoints)