| linePlot | R Documentation |
Plot expression traces for genes across sections in a SummarizedExperiment object.
linePlot(object, genes, matrix = "normalized", facet = FALSE, span = 0.3)
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.
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.