Description Usage Arguments Value See Also Examples
Plot expression traces for genes across sections in a SummarizedExperiment
object.
1 |
object |
A |
genes |
A character vector of gene names for plotting expression traces. |
matrix |
Character, must be one of |
facet |
Logical. Plot the expression trace of each gene in a facet if it is |
span |
Numeric, the amount of smoothing for the default loess smoother. Smaller numbers produce wigglier lines, larger numbers produce smoother lines. Set it to 0 for non-smoothing lines. |
A ggplot
object.
geom_smooth
for plotting smooth lines, facet_wrap
for faceting genes.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(zh.data)
zh <- createTomo(zh.data)
linePlot(zh,
c("ENSDARG00000002131", "ENSDARG00000003061", "ENSDARG00000076075", "ENSDARG00000076850"))
# Do not smooth lines.
linePlot(zh,
c("ENSDARG00000002131", "ENSDARG00000003061", "ENSDARG00000076075", "ENSDARG00000076850"), span=0)
# Plot genes in different facets.
linePlot(zh,
c("ENSDARG00000002131", "ENSDARG00000003061", "ENSDARG00000076075", "ENSDARG00000076850"),
facet=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.