bar_plot: bar_plot

Description Usage Arguments Details

View source: R/functions.R

Description

Create bar plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
bar_plot(
  qpcr,
  xvar = "Condition",
  baseline_samples,
  genes,
  ND_y_nudge = 0.5,
  comparisons = NULL,
  xlabels = NULL,
  linear = T,
  y_breaks = NULL,
  map_signif_level = F,
  legend = T,
  step_increase = 0,
  tip_length = 0,
  bar_fill,
  colors = c("#bfbfbfbf", "#666666")
)

Arguments

qpcr

An instance of the qpcr class

xvar

Variable to be displayed on the x-axis. This needs to be a column n the annotation data.

baseline_samples

Samples that should be used as baseline for foldchange calculation.

genes

Vector of the genes that will be included in the plot.

ND_y_nudge

Nudge value for the display of labels for undetected values.

comparisons

List of comparisons that will be evaluated with the indicated statistical test. Each element of this list should contain a vector of length two, containing two values of the variable displayed on the x-axis.

xlabels

Named vector containing aliases for the values of the x-axis variable. These aliases will be used for plotting.

linear

Logical indicating whether the expression values should be in a linear range. If FALSE, log2 values will be plotted.

y_breaks

Numerical vector with custom y-axis breaks.

map_signif_level

Logical indicating whether to use asterisks to denote significance. If FALSE, p-values will be displayed.

legend

Logical indicating whether a legend needs to be displayed.

step_increase

Offset for each significance line.

tip_length

Tip length of each significance line.

bar_fill

Name of the variable, based on which the bars will be colored.

colors

Colors to fill the bars with.

Details

bar_plot makes a bar plot of the expression data


jonathandesmedt92/RtqpcR documentation built on April 26, 2020, 8:25 a.m.