View source: R/rnaseq_helpers.R
Make a plot of a single gene. If more genes are provided will facet by gene. Generally useful for less than about 30 genes
1 2 3 |
genes |
character vector of gene identifers that you wish to plot. ID type must match gene ids in the dds object. |
dds |
valid DESeq2 object used to extract the gene expression values.
Uses the |
xaxis |
character, name of the sample column to put on the x-axis, must
be a column in |
fill |
character, name of the sample column to use for colouring the
plot, must be a column in |
normalized |
whether the counts should be normalized by size factor
(default is TRUE). Passed to |
transform |
whether to present log2 counts (TRUE) or to present the
counts on the log scale (FALSE, default). Passed to
|
gene_key |
an optional named list of gene symbols with the gene ids as names. Used as a lookup key to replace gene ids with symbols in the plot |
palette |
character, name of RColorBrewer palette to use. Default is "Set1" |
type |
character, type of plot to make. Defaults to boxplot. |
facet_scale |
character, passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.