Learn R Programming

rtpcr (version 2.1.4)

plotSingleGene: Bar plot of single gene expression (Delta Delta Ct method)

Description

Creates a bar plot of relative gene expression (fold change) values from single gene analysis

Usage

plotSingleGene(
  res,
  col_width = 0.8,
  err_width = 0.15,
  color = "black",
  alpha = 1,
  base_size = 12,
  d = 0.4,
  ...
)

Value

A bar plot of Delta Delta Ct showing pairwise significance

Arguments

res

An object created by the ANOVA_DDCt() function

col_width

Numeric. Width of bars (default 0.8)

err_width

Numeric. Width of error bars (default 0.15)

color

Optional color for the bar outline

alpha

Numeric. Transparency of bars (default 1)

base_size

Numeric. Base font size for theme (default 12)

d

Distance between horizontal significance lines

...

Additional ggplot2 layer arguments

Examples

Run this code
res <- ANOVA_DDCt(
data_2factor,
numOfFactors = 2,
mainFactor.column = 2,
numberOfrefGenes = 1,
block = NULL,
analyseAllTarget = TRUE) # If you have multi-target gene data, specify a single target gene.

plotSingleGene(res, fill = "cyan4", color = "black", base_size = 12)

Run the code above in your browser using DataLab