ggplot2_dotplot: Plot number of DE genes

Description Usage Arguments Details Value Author(s) References Examples

View source: R/plot_dotplot.R

Description

ggplot2_dotplot function plots the number of differentially expressed (DE) genes in each test.

Usage

1
ggplot2_dotplot(deg = NULL, path = ".", save_plot = TRUE)

Arguments

deg

The list of DE genes generated by one of ERSSA::DE_*.R scripts.

path

Path to which the plot will be saved. Default to current working directory.

save_plot

Boolean. Whether to save plot to drive. Default to TRUE.

Details

The number of DE genes are plotted as dots grouped by the associated replicate level. At each replicate level, a boxplot is drawn to mainly show the first and third quartiles as well as the median. Additionally, A red line is drawn representing the mean at each replicate level. A horizontal dashed blue line represents the number of DE genes found with all samples.

Value

A list is returned containing:

Author(s)

Zixuan Shao, Zixuanshao.zach@gmail.com

References

H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2009.

Examples

1
2
3
4
5
6
# load edgeR deg object generated by erssa_edger using example dataset
# example dataset containing 1000 genes, 4 replicates and 5 comb. per rep.
# level
data(deg.partial, package = "ERSSA")

gg_dot = ggplot2_dotplot(deg.partial)

ERSSA documentation built on Nov. 8, 2020, 7:44 p.m.