plotTime | R Documentation |
This function accepts a single gene or vector of multiple genes along with counts, conditions, and timepoints to plot the difference of gene expression between conditions over time.
plotTime(
genes,
counts,
condition,
timePoints,
tOrd,
title = "",
cols = "Dark2",
yax = "Expression",
xax = "Time Point",
eb = "se",
showStat = T
)
genes |
character vector of at least one gene found in rownames(counts) |
counts |
data frame of gene expression where rows are genes and columns are samples |
condition |
character vector describing the condition of each sample in the same order of colnames(counts) |
timePoints |
character vector describing the time points of each sample in the same order of colnames(counts) |
tOrd |
character vector describing the order in which the timePoints should be plotted. Must be length of length(unique(timePoints)) |
title |
character describing the title of the plot |
cols |
Character indicating the RColorBrewer palette name or list of colours (hex, name, rgb()) to be used. Default is "Dark2" |
yax |
character indicating how the y-axis should be labeled - note that error bar notation will be added automatically if applicable |
xax |
character indicating x-axis label |
showStat |
Boolean indicating if significance should be shown on the plot. |
plot showing expression changes over time
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.