Description Usage Arguments Value Author(s) See Also Examples
Plot Individual Genes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## S4 method for signature 'SummarizedExperiment'
plotGene(object, genes, interestingGroups,
countsAxisLabel = "counts", medianLine = TRUE,
color = scale_color_hue(), headerLevel = 2L, return = c("facet", "wide",
"grid", "markdown", "list"))
## S4 method for signature 'bcbioRNASeq'
plotGene(object, normalized = c("rlog", "vst", "tpm"),
...)
## S4 method for signature 'DESeqDataSet'
plotGene(object, ...)
## S4 method for signature 'DESeqTransform'
plotGene(object, ...)
|
object |
Object. |
genes |
Character vector of genes to include. These must match the rownames of the object. It is best practice to use the stable gene identifiers from Ensembl (e.g. "ENSG00000000003") and not the gene symbols. |
interestingGroups |
Character vector denoting groups of interest that
define the samples. If left unset, defaults to |
countsAxisLabel |
Label to use for the counts axis. |
medianLine |
Include median line for each group. Disabled if samples are colored by sample name. |
color |
Desired ggplot color scale. Must supply discrete values. When
set to |
headerLevel |
R Markdown header level. |
return |
Object class to return. Uses |
normalized |
Character indicating which normalization method to apply:
|
... |
Additional arguments. |
"grid
": Show cowplot::plot_grid()
, paneled per gene.
"wide
": Show ggplot
in wide format, with genes on the x-axis.
"list
": list
, containing per gene ggplot
objects.
"markdown
": Show tabset R Markdown output, tabbed per gene.
Michael Steinbaugh
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.