plotTime: Plot time course data

View source: R/plotTime.R

plotTimeR Documentation

Plot time course data

Description

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.

Usage

plotTime(
  genes,
  counts,
  condition,
  timePoints,
  tOrd,
  title = "",
  cols = "Dark2",
  yax = "Expression",
  xax = "Time Point",
  eb = "se",
  showStat = T
)

Arguments

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.

Value

plot showing expression changes over time


kevincjnixon/BinfTools documentation built on July 10, 2024, 11:46 a.m.