perWeek_barplot: Creates barplot of results of per-timepoint comparison

Description Usage Arguments Details Value Examples

View source: R/DE_timepoints.R

Description

Creates barplot of results of per-timepoint comparison

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
perWeek_barplot(
  de_results,
  type = c("qval", "pval"),
  labels = NULL,
  threshold = 0.05,
  xlab = "Timepoint",
  ylab = "Number of DE genes",
  main = "",
  ...
)

Arguments

de_results

results from DE_timepoints

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 barplot

Details

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.

Value

This is a plotting function, and returns (invisibly) the results of barplot

Examples

1
2
3
4
5
6
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)

NelleV/moanin documentation built on July 28, 2021, 7:34 p.m.