oneFACTORplot {rtpcr}R Documentation

Bar plot of the relative gene expression (\Delta C_T method) from the qpcrANOVARE output of a one-factor experiment data

Description

Bar plot of the relative expression of a gene along with the standard error (se), 95% confidence interval (ci) and significance. oneFACTORplot is mainly useful for a one-factor experiment with more than two levels.

Usage

oneFACTORplot(
  res,
  width = 0.4,
  fill = "skyblue",
  y.axis.adjust = 0.5,
  y.axis.by = 2,
  errorbar = "se",
  show.letters = TRUE,
  letter.position.adjust = 0.1,
  ylab = "Relative Expression",
  xlab = "none",
  fontsize = 12,
  fontsizePvalue = 5,
  axis.text.x.angle = 0,
  axis.text.x.hjust = 0.5
)

Arguments

res

an FC data frame object created by qpcrANOVARE(x)$Result function on a one factor data such as data_1factor.

width

a positive number determining bar width.

fill

specify a fill color.

y.axis.adjust

a negative or positive number for reducing or increasing the length of the y axis.

y.axis.by

determines y axis step length.

errorbar

Type of error bar, can be se or ci.

show.letters

a logical variable. If TRUE, mean grouping letters are added to the bars.

letter.position.adjust

adjust the distance between the grouping letters to the error bars.

ylab

the title of the y axis.

xlab

the title of the x axis.

fontsize

size of all fonts of the plot.

fontsizePvalue

font size of the pvalue labels

axis.text.x.angle

angle of x axis text

axis.text.x.hjust

horizontal justification of x axis text

Details

The oneFACTORplot function generates the bar plot of the average fold change for target genes along with the significance and the 95% confidence interval as error bars.

Value

Bar plot of the average fold change for target genes along with the significance and the 95% confidence interval as error bars.

Author(s)

Ghader Mirzaghaderi

Examples


# Before plotting, the result needs to be extracted as below:
res <- qpcrANOVARE(data_1factor, numberOfrefGenes = 1)$Result

# Bar plot
oneFACTORplot(res,
         width = 0.2,
         fill = "skyblue",
         y.axis.adjust = 0,
         y.axis.by = 0.2,
         errorbar = "se",
         show.letters = TRUE,
         letter.position.adjust = 0.05,
         ylab = "Relative Expression",
         xlab = "Factor Levels",
         fontsize = 12)



[Package rtpcr version 1.0.8 Index]