qPCR_graph: A function to graph fold change qPCR data

Description Usage Arguments Value

View source: R/visualization_functions.R

Description

A function to graph fold change qPCR data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
qPCR_graph(
  table,
  x = "target_name",
  y = "fold_change",
  house_gene,
  color = "",
  xlab = "",
  ylab = "Fold Change\n",
  colorlab = "Expt",
  color_choices = c("#336699", "#9999FF", "black", "red"),
  ycoord_max = 5,
  replicates = "no_replicates",
  bars = "std_error",
  hline = "yes",
  coord_cart = "yes",
  theme = "jaclyn"
)

Arguments

table

a tibble, columns are expt conditions, fold change, error, target_name

x

a character, the column title for the variable to be plotted on the x axis, target_name

y

a character, the column title for the variable to be plotted on the y axis, fold_change

house_gene

a character, gene to use as the housekeeping gene

color

a character/character list, the columns to group into color

xlab

a character, the label for the x axis, default is ""

ylab

a character, the label for the y axis, default is "Fold Change\n"

colorlab

a character, the label for the legend based on color, default is "Expt"

color_choices,

a character list, the colors you want to use for the graph

ycoord_max

a numeric, the max value for the fold change displayed on the graph

replicates

a character, "no replicates" or the list of columns to use for the replicates

bars

a character: "std_dev" or "std_error" type of error bars you will get on your graph

hline

a character: "yes" or "no", if yes, a horizontal line for fold change is 1 is added

coord_cart

a character: "yes" or "no", if no graph scaled to extent of data

theme

a character: "jaclyn" or "default", if default, the original theme applied and you can add your own theme later

Value

summary statistics table is printed and graph object is returned


JaclynSmith/qPCRr documentation built on Aug. 20, 2020, 1:40 p.m.