Description Usage Arguments Details Examples
View source: R/fcSortBarPlot.R
Not only does this plot all of your differentially expressed genes as a bar plot with the Y axis representing log2fold change, but it also orders all of the bar from positive to negative, highlights the bar corresponding to a list of interest, and draws a line at a threshold of your choosing.
1 2 | theoBarPlot(myResults, highlightGenes, highlightGeneName, fcThreshold_plot,
fcThreshold, myTitle, myWidth, myHeight)
|
myResults |
Results output from DESeq (not a data frame, but a DESeq object) |
highlightGenes |
column of data frame with genes you want to highlight |
fcThreshold |
Where do you want to draw horizontal line on plot? 0.58 ~= 1.5fold, 1~=2fold, 1.322~=2.5fold |
myTitle |
Character string representing title of plot |
highlightGeneNames |
Character string representing what you want highlighted genes to be called in legend |
NOTE: if you want to do this with SHRUNKEN LFCs, NOT THE DESEQ DEFAULT LOG2FCs, use the function theoBarPlot_lfcShrink
1 | theoBarPlot(results_sex, amySexGenes[,1], 0.58, 0, 'Log2-Fold Change of Genes that are DE by Sex', 15, 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.