Description Usage Arguments Details Examples
View source: R/fcSortBarPlot_lfcShrink.R
Like theoBarPlot, but for shrunken LFCs.
1 2 | fcSortBarPlot_lfcShrink(myResults, highlightGenes, highlightGeneName,
fcThreshold, myTitle, myWidth, myHeight)
|
myResults |
Results output from DESeq (can be a data frame too I suppose, e.g. output of add_lfcShrink) |
highlightGenes |
column of data frame with genes you want to highlight |
fcThreshold |
Where do you want to draw horizontal line on plot? |
myTitle |
Character string representing title of plot |
highlightGeneNames |
Character string representing what you want highlighted genes to be called in legend |
myTitle |
integer representing width of plot |
myTitle |
integer representing height of plot |
Doesn't plot lfc standard error (yet).
Not only does this plot all of your differentially expressed genes as a bar plot with the Y axis representing SHRUNKEN 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 | theoBarPlot(results_sex, amySexGenes[,1], 0.58, 'Log2-Fold Change of Genes that are DE by Sex')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.