Description Usage Arguments Details Value Author(s) References Examples
ggplot2_dotplot
function plots the number of differentially expressed
(DE) genes in each test.
1 | ggplot2_dotplot(deg = NULL, path = ".", save_plot = TRUE)
|
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. |
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.
A list is returned containing:
gg_object the ggplot2 object, which can then be further customized.
deg_dataframe the tidy table version of DEG numbers for plotting.
full_num_DEG The number of DE genes with all samples included.
Zixuan Shao, Zixuanshao.zach@gmail.com
H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2009.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.